public int NextLocation() { var currentLocation = Array.IndexOf(Board, CurrentPlayer.CurrentLocation); var nextLocation = currentLocation + DiceRoller.CurrentRoll(); return(nextLocation > 39 ? nextLocation - 40 : nextLocation); }
public int NextLocation() { var currentLocation = Array.IndexOf(Board, CurrentPlayer.CurrentLocation); var nextLocation = currentLocation + DiceRoller.CurrentRoll(); return(nextLocation > 39 ? nextLocation - 40 : nextLocation); }