Exemplo n.º 1
0
 private static void computerTurn()
 {
     System.Threading.Thread.Sleep(500);
     turn++;
     computer.strategy(board, turn);
     // After each turn print the board.
     board.printBoard();
     // There can be winners starting in the fifth round
     if (turn > 4 && (checkForWinners() || board.isFull()))
     {
         if (board.isFull())
         {
             Dialog.noOneWins();
         }
         // If won exit the game
         System.Environment.Exit(1);
     }
 }