I am currently trying to implement a really simple board game (have not decided what board game to make) using some design patterns.
Am I on the right track?
Adding players: when adding players, in order to satisfy the open-closed principle, strategy pattern is appropriate to be used
Moving players forwards or backward on the board depending on the situation: command pattern is appropriate to be used for moving players by having execute() method
Rolling a dice: have no idea for it...
I am really new to design patterns, can someone please tell me if I am on the right track or not?
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire