Skip to content

arashsm79/tictactoe-minimax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Minimax AI in Java

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

Alt text

Alt text

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