Beispiel #1
0
 static void Main(string[] args)
 {
     while (CONTINUE)
     {
         Console.WriteLine("\nWelcome to TicTacToe Game !");
         ticTacToe.CreateGameBoard();
         ticTacToe.ShowBoard();
         ticTacToe.ChooseInput();
         string firstMoveBy = ticTacToe.CheckWhoPlaysFirst();
         if (firstMoveBy == ticTacToe.player[1])
         {
             ticTacToe.ComputerMove();
         }
         else
         {
             ticTacToe.ChoosePositionOnBoard();
         }
         ticTacToe.ShowBoard();
         ticTacToe.PlayTillGameOver(firstMoveBy);
         playAgain();
     }
 }