private void TakeNormalTurn() { do { Dice.Roll(); if (Dice.NumberOfConsecutiveDoubles == 3) { MovePlayerToDoublesPenaltyLocation(); } else { MovePlayer(); } }while (Dice.IsDoubles && Dice.NumberOfConsecutiveDoubles < 3 && !Player.IsInJail); }
private void TakeTurnWhileInJail() { Player.NumberOfTurnsInJail++; Dice.Roll(); if (Dice.IsDoubles) { Player.IsInJail = false; Player.NumberOfTurnsInJail = 0; MovePlayer(); } else if (Player.NumberOfTurnsInJail == 3) { PayToGetOutOfJail(); MovePlayer(); } }