Exemple #1
0
        private static void PlayCurrentTurn()
        {
            CurrentBoard board    = new CurrentBoard();
            var          newBoard = board.ChangeCurrentBoard(CurrentBoard, Letter, Row, Column);

            do
            {
                if (CurrentBoard != newBoard)
                {
                    CurrentBoard = newBoard;
                    ReturnCurrentBoard();
                    continue;
                }
                Console.WriteLine("Oh no, a piece is already at this place! Try again...");
            } while (false);
        }
Exemple #2
0
 private void ComputerPlayer_BestMoveFound(Move bestMove)
 {
     CurrentBoard[bestMove.Row, bestMove.Col] = _computer;
     CurrentBoard.UpdateBoardUI();
 }