Beispiel #1
0
        void IBoardSimulation.OnTileSelected(ITileSimulation tile)
        {
            // Bump game simulation
            _game.OnGameInput();

            // What was the tile type we selected?
            if (tile.tileType == Tile.Tile.TileType.Bomb)
            {
                RevealAllBombs(tiles);
                ((IGameSimulation)_game).GameLost();
            }
            else if (tile.tileType == Tile.Tile.TileType.Blank)
            {
                RevealAdjacentBlankTiles(tile);
            }
        }