MATCH REPLAY
Choose a map and its players. Matches run on this device.
Write a Python strategy or compile a Wasm module. In New match, choose Local file for a player and select your bot. The file stays on your device.
def play(turn): for unit in turn.units: if turn.enemies: enemy = turn.enemies[0] unit.shoot(enemy.x, enemy.y) else: unit.move(turn.size // 2, turn.size // 2)
The PocketPy SDK calls play(turn) once per turn. Your globals persist for the match. The engine resolves each team’s orders together.
play(turn)
Download Python Scout · Download the local runner & SDK
python3 -m venv .venv .venv/bin/pip install -r arena/requirements.txt .venv/bin/python -m arena capture kill
Open the resulting match.json with Open replay. The kit includes the C header, Python packer, example strategies, ABI and runner instructions. Runtime notices
match.json