Esempio n. 1
0
        private void TakeNormalTurn()
        {
            do
            {
                Dice.Roll();

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

            if (Dice.IsDoubles)
            {
                Player.IsInJail            = false;
                Player.NumberOfTurnsInJail = 0;
                MovePlayer();
            }
            else if (Player.NumberOfTurnsInJail == 3)
            {
                PayToGetOutOfJail();
                MovePlayer();
            }
        }