suragnair/alpha-zero-general
A flexible self-play reinforcement learning framework implementing AlphaZero for training game-playing agents via MCTS and neural networks.

This repository provides a clean implementation of the AlphaGo Zero algorithm for two-player turn-based adversarial games. The system combines Monte Carlo Tree Search with deep neural networks trained via self-play reinforcement learning. Users can subclass provided base classes for Game and NeuralNet to adapt the framework to any game, with sample implementations for Othello in both PyTorch and Keras. The training loop manages self-play episodes, MCTS simulations, and neural network updates.
Frequently asked
- What is suragnair/alpha-zero-general?
- A flexible self-play reinforcement learning framework implementing AlphaZero for training game-playing agents via MCTS and neural networks.
- Is alpha-zero-general open source?
- Yes — suragnair/alpha-zero-general is open source, released under the MIT license.
- What language is alpha-zero-general written in?
- suragnair/alpha-zero-general is primarily written in Jupyter Notebook.
- How popular is alpha-zero-general?
- suragnair/alpha-zero-general has 4.5k stars on GitHub.
- Where can I find alpha-zero-general?
- suragnair/alpha-zero-general is on GitHub at https://github.com/suragnair/alpha-zero-general.