Tic-Tac-Toe is a two player game where each player takes turns marking the spaces in a 3x3 grid with either of the two distinct symbols (Xs and Os). The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
S.no. | APPROACH | CODE |
---|---|---|
1. | MinMax, CLI | Link |
2. | GUI, two player | Link, Demo |
3. | Reinforcement Learning, CLI | Link |
4. | Reinforcement Learning, GUI | Link, Demo |
- Clone the repository and move to the downloaded folder:
$ git clone https://github.com/nazianafis/Tic-Tac-Toes
$ cd Tic-Tac-Toes
- Run
ttt_gui_rl.py
:
$ python ttt_gui_rl.py
-
Wait for the agent to train and its policy to save and load.
-
The PyGame window will open up. Enjoy the gameplay!
- Reinforcement Learning : An Introduction, book by Sutton and Barto.
- samsepi0x0