Apps / Lockstep Lab

Lockstep Lab

Watch deterministic lockstep and rollback netcode work, and fail.

Open Lockstep Lab ↗ Want one like this?

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.

Good to know

The differences between computers are simulated and exaggerated, so drift shows up far sooner than on real hardware.

More for learners

StepWise

100+ data structures and algorithms, every step narrated with its pseudocode line and variables; step back, share as a link, embed in Canvas.

LearnersEducators Open ↗

Digital Student Assistant

An AI teaching assistant that asks before it tells and won’t hand over homework. Yusuf Pisan’s data structures students at UW Bothell use it now.

EducatorsLearners Open ↗