Tic tac toe implementation using RL espacially using expected SARSA algorithm. I tested this app in Windows 10. I used swing library in java standard library to visualize game board.
- maven
- jdk 1.8 or higher
- Go to the root directory of this project.
- Open terminal and type
mvn package
. Make sure you have target directory in this project directory. - Type
java -jar ./target/tic-tac-toe-1.0-SNAPSHOT.jar
- Make sure you can play game now.
If you want to train your agent from the begining, you can delete state_value.bin
file, and play game.
You should do train agent many times to get better performance.