Pitt-RAS / micromouse-2016

7 stars 6 forks source link

Menu refactor #74

Closed ghost closed 7 years ago

ghost commented 7 years ago

Currently, menu logic is repeated in switch statements, which is error prone and hard to maintain. Revamp with a proper Menu class such that is constructed based on an array of menu items with names and actions. This should be syntactically "nice" and should be easy to maintain.

ghost commented 7 years ago

I rearranged menu code once before, but I need to do a better job.