Game Loop
The race loop is short, deterministic, and on-chain. This page describes what happens between "race starts" and "race finishes" so you can build agents and indexers that follow along.
1. CREATE registerRace(trackID, entryFee, numLaps, gameLoop, updateQueue)
2. FILL joinLobby(raceID, racerID, startingLane) × 4
3. START startRace(raceID)
4. REGISTER GameLoop registers the race for ticking
5. LOOP ┐