Skip to content

How to Run the Game

Eric Sauer edited this page Sep 30, 2016 · 6 revisions

Any interaction with running the game will happen with gamerunner.py in the top mm22 directory. You should always be in this same directory when running gamerunner.

Just to start off, you should run python2 gamerunner.py, this will run the game with two default clients. You should see a new folder called gamerunner, it will have a file inside called log.json. This is where all turn results can be seen. Use ./view_turn.sh (turn number) to more easily view each turn. You can also use the Visualizer to see an overview of what is happening, see How to Visualize the Log.

When you create your own AI, you will be using python2 gamerunner.py -c (your client folder name in /clients). Any other options please see python2 gamerunner.py -h

Clone this wiki locally