Closed ethanjweiner closed 3 years ago
2 possible solutions:
Final solution: Represented routers & landing points as classes, where a landing point is a subclass of router. Now, when iterating over the routers & landing points, we simply perform the routing based on the class we are in.
Task Title
Optimize the routers array for routing
Task Description
This Task will hone in on the data definitions for routers and oceanic endpoints. I will format the routers list so that the route function can most easily access and traverse the routers. I will specifically focus on differentiating between normal routers and oceanic endpoints. I might use classes to represent and distinguish between these two router types. I will spend some time thinking about how to best represent this data.