mjcortejo / csc931m-complex-systems

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

[OPTIONAL] Implement multi-lane #20

Open mjcortejo opened 1 year ago

mjcortejo commented 1 year ago

I was thinking of modifying this part

self.edges = {i: {'cars_occupied': [], 'has_accident': False, 'road_speed': 50, 'one_way': False} for i in self.edge_list}

Inside cars_occupied there will be a multidimensional array containing an empty sequence for n-lanes.

Something like:

cars_occupied: [[],[]] -> Where each element is an array of an individual lane.

dev note: Was thinking of converting this into a dictionary to indicate Left or Right Lanes {"L":[], "R":[]}