public void Roll(int roll) { mCurrentPlayer = mPlayers[mCurrentPlayerIndex]; var playerName = mCurrentPlayer.Name; mUi.PlayerRolls(playerName, roll); if (mCurrentPlayer.IsInPenalty) { if (roll % 2 != 0) { mIsGettingOutOfPenaltyBox = true; mUi.PlayerLeavesPenalty(playerName); Advance(roll); } else { mUi.PlayerStaysInPenalty(playerName); mIsGettingOutOfPenaltyBox = false; } } else { Advance(roll); } }