Server baised alpha Zero server and client.
Build and Install the following libraries according to there installation instructuions provided in there README.md
- spdlog
- sockpp
- Optionally install CUDA 11.3+ (if installed cuDNN is also required)
- download and extract pytorch from https://pytorch.org/
Then compile as follows
- Clone this reposetory and switch to the working branch as main is currently broken.
- Compile code in
AlphaZeroPytorchusingcmake. like so
cmake /your/AlphaZeroPytorch/Path -DCMAKE_PREFIX_PATH=your/pytorch/path
- build with cmake
In order to train the AI use the train excecutable provided by AlphaZeroPytorch
In order to run the test suite use the runTest excecutable provided by AlphaZeroPytorch
In order to run the test suite use the runServer excecutable provided by AlphaZeroPytorch
In order to build the elo ratings of the various agens use the eloRaiting excecutable provided by AlphaZeroPytorch note that the elo server must be running. It is located in the elo directory and can be run with python3 server.py
We recomend using the pyClient located inside the Clients folder as the other two are ether console only or designed for IOS. In order to run the pyClient navigate into Clients/pyClient and run the main.py file with python3.
Note:
pyClient requires both PIL (With TkImage) and tkinter.