mjcortejo / csc931m-complex-systems

This repository contains the projects done for the CSC931M class
0 stars 0 forks source link

Implement queueing capabilities for cars by observing distance of front car, and fix intersection adjacent light state issue #12

Closed mjcortejo closed 1 year ago

mjcortejo commented 1 year ago

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