Traffic Flow

Description

Cars stay on the right side of the road. Ten percent of cars move fast and another ten percent move slowly. The remaining eighty percent move at the normal speed. The color of fast moving car is blue and that of slow moving car is green while that of other normal speed cars is black. Even a fast moving car has to slow down if a slower moving car is near ahead. In this case, the car changes its color to black or green.

If a car arrives at its destination, it sets a new destination. Pink car's path from start to destination is drawn as a pink line. On the way to the destination, a car may encounter four-way (or two-way) stop signs, in which case it stops for a short period of time. At a yield sign, it has to yield to other cars in front. If a car stops at traffic signs, its color turns red while if it has a near-miss with another car, its color turns light green.

Instructions

Options