示例#1
0
        public bool ShouldBeReleasedFromPrison()
        {
            if (GetOutOfJailFreeCardCount > 0)
            {
                GetOutOfJailFreeCardCount -= 1;
                return(true);
            }

            return(RollsInPrison.Count == 3 || RollsInPrison.Last().IsADouble());
        }
示例#2
0
 public void ReleaseFromPrison()
 {
     Imprisoned = false;
     MoveForward(RollsInPrison.Last().TotalValue());
     RollsInPrison.Clear();
 }
示例#3
0
        public void RollInPrison()
        {
            var roll = new DiceRoll(_random).Roll();

            RollsInPrison.Add(roll);
        }