This project is aimed at replicating DeepMind's AlphaZero algorithm, specifically for the game of Connect 4. The project uses a combination of Monte Carlo Tree Search (MCTS) and a deep convolutional neural network to train an AI agent capable of playing Connect 4 at a high level.
- Clone the repository:
git clone https://github.com/Honyant/AlphaZero.git - Navigate to the project directory:
cd AlphaZero - Install the required Python packages:
pip install -r requirements.txt
To train the AI, run the train.py file:
python train.pyTo train the AI in parallel, run the parallel_train.py file:
python parallel_train.pyTo play against the AI, run the ai_game.py file:
python ai_game.pyThis project was inspired by DeepMind's AlphaZero algorithm. It uses the PyTorch library for the neural network implementation.