loco-lab / hera-display-games

Games to be played on the HERA display
MIT License
0 stars 0 forks source link

Subclass Board #23

Open dannyjacobs opened 4 years ago

dannyjacobs commented 4 years ago

Suppose I want to add some features to the board for a specific kind of game, for example a specific style of physics. The class hierarchy of _Board -> Board/VirtualBoard makes it hard to make a subclass like I would for the sprites.

steven-murray commented 4 years ago

Yup, probably should have designed this with composition, rather than inheritance. I'll fix at earliest convenience.