Class Display pretty prints the board for display. The GamePrinciples class takes into account the rules for the game to end/continue. Class Main contains the main game loop and the interaction section. The Minimax class implements the minimax algorithm in a recursive manner. If you have any ideas into improving the method or extending it to other games please email: [email protected] enjoy playing and remember that the computer will not lose! If you want it to lose read the comments in the Main class and change the codes to make the game easier.
mehrad31415 / javaminimaxtictactoe Goto Github PK
View Code? Open in Web Editor NEWCreating a tic-tac-toe game using minimax algorithm with Java.