Пример #1
0
        public DiceGroupRollResult Roll()
        {
            List<int> rollValues = new List<int>();

            foreach (Dice dice in Dice)
            {
                rollValues.Add(dice.Roll());
            }

            LastRollResults = new DiceGroupRollResult(NumberOfSides, rollValues);

            return LastRollResults;
        }
Пример #2
0
        public DiceGroupRollResult Roll()
        {
            List <int> rollValues = new List <int>();

            foreach (Dice dice in Dice)
            {
                rollValues.Add(dice.Roll());
            }

            LastRollResults = new DiceGroupRollResult(NumberOfSides, rollValues);

            return(LastRollResults);
        }