rgsimulator
rgsimulator copied to clipboard
Simulate situations to test your robotgame bot!
rgsimulator
Test how your robotgame bot behaves in certain situations.
(latest) rgkit is needed to use it. If you don't have it, grab it from here and install as a module with pip.
Usage
usage: rgsimulator.py [-h] [-m MAP] player [player2]
Robot game simulation script.
positional arguments:
player File containing first robot class definition.
player2 File containing second robot class definition (optional).
optional arguments:
-h, --help show this help message and exit
-m MAP, --map MAP User-specified map file.
If your robot code contains a dict called rgsim_text, rgsimulator will attempt to print the dict's values at the location given by the dict's keys.
Controls
rgsimulator is fully keyboard-controlled.
- Use arrow keys or
WASDto move selection. - Press
Fto create a friendly bot in selected cell. - Press
Eto create an enemy bot in selected cell. - Press
R,DeleteorBackspaceto remove a bot in selected cell. - Press
Hto change hp of a bot in selected cell. - Press
Tto change turn. - Press
Cto clear the board. - Press
Spaceto show moves bots would attempt. - Press
Enterto progress turn. - Press
Lto load a match from robotgame.net. Enter just the match number. - Press
Kto load a specific turn from a loaded match. Also updates the simulator turn counter. - Press
Pto swap code for the two bots. (player 1 becomes player 2) - Press
Oto reload the code for both bots. - Press
Nto change the action of the robot in selected cell. ThinkNfor "next action". - Press
Gto spawn robots and remove robots in spawn locations. ThinkGfor "generate robots".
Screenshots
