TicTacToeRL

This is a simple implementation of the Tic-Tac-Toe game in Python. The repo also contains a Reinforcement Learning agent class that uses the Q-Learning algorithm.

For some reason, saving and loading the Q-table does not work. If the agent isn't appropriately trained, please rerun the tic_tac_toe.py script.

How to Run

To play the Tic-Tac-Toe game, follow these steps:

  1. Clone the project repository to your local machine:
git clone https://github.com/Limonka11/TicTacToeRL.git

2 Navigate to the project directory:

cd .\TicTacToeRL
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the game by executing the following command:
python .\tic_tac_toe.py