Secret Hint Page
Have a lane object (either human lanes, or automobile lanes) which knows about other lanes which 'conflict' with it. It's then possible to resolve right-of-way issues in an expandable way. |
There is a main polling loop which polls the lanes (which look at the sensors) and takes appropriate actions. |
A request object exists which is time-stamped to allow the implementation of a first come, first serve protocol |