This little app is a simple simulator of cars on a highway. Play with the parameters or stop any car by touching it. As a game try to maximize the throughput by playing with the parameters. It will show you why traffic will become much more performant and use less resources once everyone drives self-driving cars.
|Number of cars||Loading..|
Hover or click on a car to slow it down.
Typescript, SVG and a simple state machine for each car (You can call it AI if you want ;-). The cars are not very smart. The code is not very pretty. Edge cases are not handled well. And it performs badly on low-CPU devices. Memory leaks? Probably yes. Find the source code here.
Silvan Mühlemann, 23.10.2016