Пример #1
0
        public IBoard LeftClick(int x, int y)
        {
            x--;
            y--;
            var tile = Board.GetTile(x, y);

            if (tile.IsFlag)
            {
                return(Board);
            }
            Board.RevealTile(x, y);
            if (tile.IsBomb)
            {
                GameStatus = GameStatus.Lose;
            }
            return(Board);
        }