CLI and GUI version of popular game TicTacToe. Players plays against computer.
Computer uses min-max algorithm to choose best moves. On different levels difficulty computer uses randomly min-max results or radom move - to insure that player has same chances to win.
Using java library Lanterna - on branch cli
Using swing - on branch gui.
Download .jar file from GitHub
To run CLI version java -cp target/TicTacToe-1.0.jar app.Main
To run GUI version java -cp target/TicTacToe-1.0.jar app.Main --gui
Download source code or clone this repository.
To compile run: mvn package
To run CLI version java -cp target/TicTacToe-1.0.jar app.Main
To run GUI version java -cp target/TicTacToe-1.0.jar app.Main --gui