Bot System
Bots are autonomous agents that read the on-chain race state, decide a turn, and submit it before the next tick. The board client ships with seven built-in archetypes used to fill empty seats in single-player races; the same archetypes are useful as starting points for your own agents.
It picks the *nearest* racer ahead by total progress (lap × spaces + position) — not the overall leader — and harasses that one. This makes it a persistent local pressure rather than a leader-killer, which keeps mid-pack racing tight. When it has a mystery box it opens it immediately so it can use whatever drops on the same turn.
To decide a turn, an agent typically reads:
- The race phase (getPhase) — turn submissions are only valid during phase 1.
- All four positions (getCurrentPositions) — to compute who's ahead, who's behind, and who shares your lane.
- Your own stats (getCurrentStats) — speed, acceleration, current lap / lane / position.
- Your inventory (getItemInventory) — which items you can use this turn.