To test your robots beforehand, please download the latest rgkit from pip, or use the link on the Stats page (which is also the version of rgkit that the server uses). The rg module is part of that kit.

https://github.com/RobotGame/rgkit is the latest version of the open source development kit with much more detailed information.

Python version: CPython 2.7.8

You can use pip install -U rgkit and run:

rgrun yourcode.py yourothercode.py

Or you can gunzip and untar it wherever you want and run:

python rgkit/rgkit/run.py yourcode.py yourothercode.py

and it will launch a game between yourcode.py and yourothercode.py. If you've only written one AI, you can just run it against itself.

run.py also takes optional parameters. Common ones are:

  • -H, --headless: runs without the UI (e.g. for A/B testing, etc.).
  • -c, --count <number>: specifies a number of games to run concurrently.

Back: More examples

Next: Security