Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1021 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 1021 Bytes

AI Final Project: Backgammon

826790654_A_dream_of_2_advanced_robots_play_chess_by_Thomas_Moran__octane_render

Usage

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 /

Prerequisites

Run with python 3.7 (university computer version)

Usage Example

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