Neural network-based Tic-Tac-Toe game AI.
- model/: Contains the pre-trained neural network model and related files.
- tests/: Includes test cases for the project.
- tic_tac_toe/: Contains the TicTacToe game logic and board management.
- utils/: Includes utility functions for move selection and generation.
- TrainModel.py: Script for training the Tic-Tac-Toe AI model.
- requirements.txt: Lists the Python packages required to run the project.
- run_tests.py: Script for running the project's test cases.
- start_game.py: Main script to play the Tic-Tac-Toe game against the AI.
Ensure you have Python 3.x installed on your machine. You will also need the required Python packages listed in requirements.txt
. CUDA version 12.5 is required for GPU acceleration.
-
Clone the repository:
git clone https://github.com/ozermehmett/TicTacToeNet.git cd TicTacToeNet
-
Install the required packages:
pip install -r requirements.txt
To run the project's test cases, use:
python run_tests.py
To train the Tic-Tac-Toe AI model, run:
python TrainModel.py
To start playing the game, run:
python start_game.py
Follow the on-screen prompts to make your moves and play against the AI.