Code for the blog post https://tmoer.github.io/AlphaZero/
Tested with Ubuntu 21.10 python 3.7 (I used pyenv to run old python). Note that an old python version is required to be able to use the old Tensorflow version (1.x) required by this code.
pyenv install 3.7.12
pyenv local 3.7.12
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python alphazero.py --n_ep 50 --n_mcts 10