Open AndrewLester opened 3 years ago
I wouldn't move the color sensor stuff into the subsystem class. It's still it's own entity. What I think will make it easier is to move the logic for determining the turnToColor into the subsystem. After all, what color you turn to is based on how the mechanism interacts with the physical game piece. I played around with it this afternoon because I saw how complex the interactions between the subsystem, sensor, and commands are.
My suggestion is to move the logic inside the
ControlPanelColorSensor
class to theControlPanelSubsystem
class. Then, move theControlPanelColor
enum into theControlPanelSubsystem
class too, or put it in its own file.We'll wait on #25 for this