Tic-Tac-Toe with AI is a desktop application which allows user to play the game with:
- other person;
- computer with moves calculated randomly;
- computer with moves calculated intelligently.
In project I used following algorithm:
- Minimax Algorithm - calculating best possible computer move.
App was created in order to expand Java & JavaFX knowladge, learn about Minimax Algorithm and applying it into desktop application.
Java 11
JavaFX 15.0.1
CSS
Git
Netbeans 12.0
In order to run application locally you must have installed JRE 8
.
-
Download
TicTacToeAI.jar
file. -
Double click on it or run command:
java -jar PATH/TicTacToeAI.jar
- Main page:
- Message after gameplay:
- Gameplay information page: