Simulate situations to test your robotgame bot!
UNLICENSE License
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: 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.
rgsimulator is fully keyboard-controlled.
WASD
to move selection.F
to create a friendly bot in selected cell.E
to create an enemy bot in selected cell.R
, Delete
or Backspace
to remove a bot in selected cell.H
to change hp of a bot in selected cell.T
to change turn.C
to clear the board.Space
to show moves bots would attempt.Enter
to progress turn.L
to load a match from robotgame.net. Enter just the match number.K
to load a specific turn from a loaded match. Also updates the simulator turn counter.P
to swap code for the two bots. (player 1 becomes player 2)O
to reload the code for both bots.N
to change the action of the robot in selected cell. Think N
for "next action".G
to spawn robots and remove robots in spawn locations. Think G
for "generate robots".