Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 967 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 967 Bytes

PyOnitama

This project was made for CS 5033 Machine Learning. It emulates the Onitama board game.

The associated paper with motivation, methods, and results can be viewed here.

Run Instructions

Use Python 3.6 or higher

python3 -m pip install -r requirements.txt
python3 main.py

Set Experiments and Agents

Place new agents in src/agents. See others as example. BaseAgent will act as a human player, but is also the base class for all agents

Place new experiments in src/experiments. See others as example. Make sure to set blue_agent, red_agent, and do_render. game_ended() will be called after every round with the final game state. Agents can be reassigned at any time (e.g. swapping blue_agent and red_agent every match)

Tell PyOnitama which experiment to use in main.py as the argument to the Game constructor. (Line 10 at time of writing)