This code implements the AlphaZero algorithm for Connect Four and Othello.
- Clone the repo:
git clone https://github.com/howard36/AlphaZero.git - Install dependencies.
- If using Pipenv:
pipenv install, thenpipenv shell - Alternatively, install the packages listed in
Pipfilewith your preferred method.
- If using Pipenv:
- Run
python Main.py
The AI can beat a perfect Connect Four player if it goes first (Connect Four is a win for the first player under optimal play). At Othello, it beats me every single game (haven't benchmarked against other Othello programs or players).