The Biham-Middleton-Levine traffic model is a self-organizing cellular automaton traffic flow model. It consists of a number of cars represented by points on a lattice with a random starting position, where each car may be one of two types: those that only move downwards (red), and those that only move towards the right (blue). The two types of cars take turns to move. During each turn, all the cars for the corresponding type move by one step if possible. The slider at the bottom controls the traffic density in percent. Changing this resets the entire system.
To tweak this sketch, first download it.
Make your updates, then upload your tweak!