Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TicTacToeRun {
- public static void main(String[] args) {
- TicTacToe ticTacToe = new TicTacToe();
- NeuralNetwork neuralNetwork = new NeuralNetwork();
- int totalWins = 0;
- int totalGames = 1000000000;
- for (int games = 1; games < totalGames; games++) {
- System.out.println("This is game number: " + games + "\n");
- ticTacToe.playGame();
- totalWins = totalWins + ticTacToe.getTotalWins();
- }
- System.out.println("X won " + totalWins + " out of " + totalGames + " games");
- /*//Sets all board state to 0
- for (int row =0; row < ticTacToe.board.length; row++) {
- for (int column = 0; column < ticTacToe.board[row].length; column++) {
- ticTacToe.board[row][column] = TicTacToe.BoardState.EMPTY;
- }
- }
- neuralNetwork.runNetwork();*/
- ticTacToe.printBoard();
- }
- }
Add Comment
Please, Sign In to add comment