A simple Tic Tac Toe game written in Java. GUI is implemented using JavaFX 11 Uses Minimax (an Artificial Intelligence algorithm) which makes it quiet unbeatable. If you're here for the minimax part, scroll to the end of App.java .
Developed By Arash Sal Moslehian
You'll need javafx to compile and run this program. download it from openjfx official site and extract the contents in somewhere like
home/Documents/libs
then set the following enviroment variable
export PATH_TO_FX=home/Documents/libs/javafx-sdk-11.0.2/lib
compile and run using the below commands
java --module-path $PATH_TO_FX --add-modules javafx.controls App
javac --module-path $PATH_TO_FX --add-modules javafx.controls App.java
Cheers!
All in one command: export PATH_TO_FX=/where/you/put/javafx && javac --module-path $PATH_TO_FX --add-modules javafx.controls App.java && java --module-path $PATH_TO_FX --add-modules javafx.controls App