For queueing, I had to implement an ordered list where each car is appended into the queue by their entry order into a certain edge, this will be easier to maintain later as we don't each each of the car to observe the positions of other cars and we only want each car to focus on the one in front of them.
For the fix intersection adjacent light color state issue, the issue was fixed from the modulo operation when it alternates the color states between lighting. This might be a temporary solution as this still haven't been tested on other types of intersection networks.
For queueing, I had to implement an ordered list where each car is appended into the queue by their entry order into a certain edge, this will be easier to maintain later as we don't each each of the car to observe the positions of other cars and we only want each car to focus on the one in front of them.
For the fix intersection adjacent light color state issue, the issue was fixed from the modulo operation when it alternates the color states between lighting. This might be a temporary solution as this still haven't been tested on other types of intersection networks.
Closes #9 and closes #11