I know this is very specific question but imagine I have a board with spaces (like Monopoly) and a player that must go from one space to another after the dice are thrown.
So my workflow:
- Player roll dice
- After the player rolled dice
- (from player class) space = board.getNextSpaceFromPlayer(player)
- Move the player each step until it reach the destination
But how exactly do I move the player?
The board must move the player or the player move itself?
I'm trying hard to reflect how the things are in the real world but I find very hard to do so in this context.
Thanks for your help.