Slot Cars
This applet simulates a track with two slotcars. Each car is controlled by an accelerator, which
is changed by means of a pair of keys. The keys z and x, respectively, cause the accelerator of
the red car to decrease and increase. Likewise, the keys n and m act similar for the blue car.
If either car travels too fast around a curve it will jump the track, in which case it
pauses for a fraction of a second and its accelerator is reduced to zero. A race is started by
clicking anywhere with the mouse. The first car to complete 50 laps is declared the winner.