Built idea · Oct 12, 2026
Lockstep Lab
A browser lab for teaching deterministic lockstep and rollback netcode: two or more simulated RTS clients run side by side over a configurable fake network, and students watch exactly when and why their states desync.
What it does
A teaching lab for how online multiplayer games stay in sync. Run two to four simulated players of a small strategy game over a fake network with adjustable delay, jitter and lost packets, and compare the two classic approaches: wait for everyone's input each turn (lockstep) or predict and rewind when wrong (rollback). Switch on common causes of drift, such as floating-point math or unseeded random numbers, and it pinpoints the first unit and value where players disagree. Five auto-graded exercises test students' own simulation code. Limitation: the differences between computers are simulated and exaggerated, so drift shows up far sooner than on real hardware.