public void MovePlayerOnBoard(Player player) { var currentPosition = player.Position; var nextPosition = (currentPosition + spacesToMove) % 40; if (currentPosition > 0 && currentPosition >= nextPosition) banker.DebitPlayerAccount(player, 200); player.MovePlayer(nextPosition); var currentSpace = board.GetSpaceAtLocation(nextPosition); currentSpace.LandOn(player); }
public override void LandOn(Player player) { player.MovePlayer(10); }