Experiment Number
Experiment Number
Code:
// // AI_LAB_1
// // Tic-Tac-Toe Game
// import java.util.Arrays;
// public TicTacToe() {
// board = new char[3][3];
// initializeBoard();
// }
// // Play the next move for 'X' and update the board
// game.playNextMove();
// game.printBoard();
// System.out.println("Number of X's: " + game.xCount);
// System.out.println("Number of O's: " + game.oCount);
// System.out.println("Number of empty spaces: " +
game.emptyCount);
// }
// }
// import java.util.Arrays;
// public TicTacToe() {
// board = new char[3][3];
// initializeBoard();
// }