#537 · Primary category: Education & Research

alpha-zero-general

alpha-zero alphago alphago-zero alphazero deep-learning gobang gomoku keras mcts monte-carlo-tree-search neural-network othello pytorch reinforcement-learning self-play tensorflow tf

A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more

Project last updated:01/01/25

GitHub Stars

4.5K

Forks

1.2K

Contributors

41

License

MIT

Why we included this project

Few repositories make AlphaGo Zero's ideas as easy to follow as this one. The code is deliberately simplified and well commented, so you can trace how the neural network, Monte Carlo Tree Search, and self-play training loop fit together without wading through a production-scale codebase. Game logic stays separate from the network implementation, so you can add your own two-player turn-based game and switch between PyTorch and Keras with only a few lines changed. A pretrained Othello model and a written tutorial let you check the results hands-on, which is useful when the goal is building intuition before tackling bigger systems.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category