Пример #1
0
 private static int RollDie(Die die)
 {
     //TODO: Use IoC to inject something looking like Random
     return(Program.Random.Next(die.Sides) + 1);
 }
Пример #2
0
        public void AddNewDie(int sides)
        {
            Die d = new Die(sides);

            this.Dice.Add(d);
        }