Free tools & games for everyone
Free · No sign-up · No accounts
Watch traffic jams appear from nowhere on a ring road, add a traffic light, and find the density that lets the most cars through.
moving slow stopped
Each row is one second (newest at the bottom); each dot is a car along the road. Jams show as red stripes that drift backwards, against the traffic.
Runs the road with 3 to 117 cars using your speed limit, dawdling and light settings.
| Tab | Move between buttons and sliders |
|---|---|
| ← → | Change a slider |
| Space / Enter | Press the focused button (Play, Step…) |
It uses the Nagel–Schreckenberg model (Kai Nagel and Michael Schreckenberg, 1992). The road is split into 120 cells of 7.5 m. Every second each car speeds up by one step (up to the limit), slows down to the gap in front, slows by one more with the “dawdling” probability, and then all cars move together. Speed 5 is 135 km/h; each step is 27 km/h.
The tests check that cars never collide or overtake, that no car runs a red light, that random runs are repeatable, and that with no dawdling the flow matches the exact result: the smaller of density × speed limit and 1 − density.
It is a simple single-lane model for learning, not a traffic engineering tool. Everything runs on your device.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product