python3 backgammon.py --display <display_type> --white <player> --black <player> --num_of_games <int>
use python3 backgammon.py --help
for documentation.
Default Settings: Human vs. Human, CLI Display.
Display types: cli
/ none
/ gui
Players: human
/ random-agent
/ expectimax-agent
/
Run with python 3.7 (university computer version)
first install the dependencies (we recommend using a virtual environment, but it's the user's consideration) using pip, or with the script install.sh
.
Please run export PYTHONPATH=$PYTHONPATH:$(pwd)
when in this directory for the import paths to work properly.
Example command to play vs. a human in the CLI:
python3 backgammon.py --display cli --white human --black random-agent