🚗 Highway Traffic Flow (2D)
2D top-down Nagel-Schreckenberg traffic simulation: a cellular-automaton highway model with acceleration, braking, random dawdling and movement rules that produces emergent phantom traffic jams.
⚙ Under the hood
A 2D top-down traffic simulation using the Nagel-Schreckenberg cellular-automaton model. Cars on a multi-lane ring road follow four rules every step: accelerate, brake to the gap ahead, randomly slow down, and move forward. These simple rules cause phantom traffic jams to appear on their own, without any accident or bottleneck.
trafficcellular-automatonNagel-Schreckenbergemergencesocietycanvas2d
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install