Пример #1
0
        public DieRollResult CheckRollResult(DiceRoll roll)
        {
            DieRollResult result = DieRollResult.Default();

            foreach (var rule in _rules)
            {
                result = DieRollResult.Max(result, rule.CountPoints(roll));
            }
            return(result);
        }
Пример #2
0
 public void RollTheDice()
 {
     Roll = _diceGenerator.Roll();
 }