alpha-zero-general
A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more
File Explorer
Download Latest Version (.zip)- __init__.py
- Connect4NNet.py
- NNet.py
- __init__.py
- Connect4Game.py
- Connect4Logic.py
- Connect4Players.py
- README.md
- test_connect4.py
- Dockerfile.pytorch
- jupyter_notebook_config.py
- requirements.txt
- run_jupyter.sh
- __init__.py
- DotsAndBoxesNNet.py
- NNet.py
- __init__.py
- Convert Keras Model for use with Tensorflow.js.ipynb
- DotsAndBoxesGame.py
- DotsAndBoxesLogic.py
- DotsAndBoxesPlayers.py
- DotsAndBoxesServer.py
- DotsAndBoxesTest.py
- main-dotsandboxes.py
- pit-dotsandboxes.py
- Play Dots and Boxes using AlphaZero General.ipynb
- README.md
- Train Dots and Boxes using AlphaZero General.ipynb
- GobangNNet.py
- NNet.py
- __init__.py
- GobangGame.py
- GobangLogic.py
- GobangPlayers.py
- __init__.py
- NNet.py
- OthelloNNet.py
- __init__.py
- NNet.py
- OthelloNNet.py
- __init__.py
- OthelloGame.py
- OthelloLogic.py
- OthelloPlayers.py
- README.md
- best.pth.tar.data-00000-of-00001
- best.pth.tar.index
- 6x6_checkpoint_349.pth.tar
- 6x6 checkpoint_145.pth.tar
- 6x100x25_best.pth.tar
- 6x6_153checkpoints_best.pth.tar
- 8x8_100checkpoints_best.pth.tar
- best-25eps-25sim-10epch.pth.tar
- best-200eps-200sim-10epch.pth.tar
- 6x6.png
- writeup.pdf
- NNet.py
- RTSNNet.py
- best_player1.pth.tar.data-00000-of-00001
- best_player1.pth.tar.index
- best_player2.pth.tar.data-00000-of-00001
- best_player2.pth.tar.index
- README.md
- README.md
- Board.py
- config.py
- config_class.py
- encoders.py
- rts_pygame.py
- rts_ue4.py
- install.sh
- learn.py
- pit.py
- README.md
- RTSGame.py
- RTSPlayers.py
- SANTORINI_README.md
- SantoriniGame.py
- SantoriniLogic.py
- SantoriniPlayers.py
- __init__.py
- NNet.py
- TaflNNet.py
- __init__.py
- NNet.py
- TaflNNet.py
- __init__.py
- Digits.py
- GameVariants.py
- mainTafl.py
- pitTafl.py
- TaflGame.py
- TaflLogic.py
- TaflPlayers.py
- __init__.py
- NNet.py
- TicTacToeNNet.py
- best.pth.tar.data-00000-of-00001
- __init__.py
- README.md
- TicTacToeGame.py
- TicTacToeLogic.py
- TicTacToePlayers.py
- __init__.py
- NNet.py
- TicTacToeNNet.py
- README.md
- TicTacToeGame.py
- TicTacToeLogic.py
- TicTacToePlayers.py
- .gitignore
- Arena.py
- Coach.py
- Game.py
- LICENSE
- main.py
- MCTS.py
- NeuralNet.py
- pit.py
- README.md
- requirements.txt
- setup_env.sh
- test_all_games.py
- utils.py
π Installation Guide
1. Get the code
git clone https://github.com/suragnair/alpha-zero-general
Downloads the entire project code from GitHub to your computer.
cd alpha-zero-general
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker exec -ti pytorch_notebook python main.py
Runs the Python script (or module).
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install -r docker/requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python main.py
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
