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.
To play the Tic-Tac-Toe game, follow these steps:
- Clone the project repository to your local machine:
git clone https://github.com/Limonka11/TicTacToeRL.git
2 Navigate to the project directory:
cd .\TicTacToeRL
- Install dependencies:
pip install -r requirements.txt
- Run the game by executing the following command:
python .\tic_tac_toe.py