Report as inappropriate.
A scenario which simulates a simple traffic with cars and semaphores. The semaphores have random initialization and the cars are shifted by specific movements. Each car has a determined behavior when it founds a semaphore which indicates closed way:
* Ambulance object follows in straight line, no smaphore is considered;
* RedCar object turns left the way when semaphore is opened;
* BlueCar object turns right the way when semaphore is opened;
* Greencar object turns back the way when semaphore is opened.
Want to leave a comment? You must first log in.
No votes yet.