Exemplo n.º 1
0
        static void Main(string[] args)
        {
            DiceCollection Dice = new DiceCollection(
                new List <DiceGroup>()
            {
                new DiceGroup(2),
                new DiceGroup(4),
                new DiceGroup(6),
                new DiceGroup(8),
                new DiceGroup(12),
                new DiceGroup(20)
            });
            List <DiceGroupRollResult> results = Dice.Roll();

            PrintRollResults(results);

            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            DiceCollection Dice = new DiceCollection(
                new List<DiceGroup>()
                {
                    new DiceGroup(2),
                    new DiceGroup(4),
                    new DiceGroup(6),
                    new DiceGroup(8),
                    new DiceGroup(12),
                    new DiceGroup(20)
                });
            List<DiceGroupRollResult> results = Dice.Roll();

            PrintRollResults(results);

            Console.ReadKey();
        }
 public MainWindowViewModel()
 {
     Dice = new DiceCollection();
 }
 private void CreateDice()
 {
     Dice = new DiceCollection(
         new List<DiceGroup>()
         {
             new DiceGroup(2, NumberOfTwoSidedDice),
             new DiceGroup(4, NumberOfFourSidedDice),
             new DiceGroup(6, NumberOfSixSidedDice),
             new DiceGroup(8, NumberOfEightSidedDice),
             new DiceGroup(12, NumberOfTwelveSidedDice),
             new DiceGroup(20, NumberOfTwentySidedDice)
         });
 }