I want an simple intersection which will consist four roads(one axis will be the main road and other will be side road), the cars should be passed to the roads randomly. Intersection should be controlled by traffic lights. When the traffic light value is green the cars will start to leave the road. And if red they will wait in queue vice verse.
The program should output density values of each road.
Lights colours should available for manually changed which i can handle it later according to the density values.