Exemplo n.º 1
0
        static void Main(string[] args)
        {
            TicTacToeGame game = new TicTacToeGame();

            game.CreateBoard();
            char choice = game.Choice();

            game.ShowBoard();
            game.PlayerMovement(choice);
            game.Toss();
        }
Exemplo n.º 2
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();
     }
 }