A C# custom dice library.
- Support 4.0 and higher
- Use most common dice
- Create your own dice
- Group dice together
// single D6 dice
var dice = new Dice(DiceTypes.d6);
//roll the dice
dice.Roll();
// 2 D6 dice and a + 5 modifier
var dice2 = new Dice(DiceTypes.d6, 2, 5);
//roll the dice
dice2.Roll();
// multiple dice
var cb = new DicesCup();
cb.Add(new Dice(DiceTypes.d6, 2));
cb.Add(new Dice(DiceTypes.d6));
cb.Add(new Dice(DiceTypes.d6));
cb.Add(new Dice(DiceTypes.d6));
cb.Add(new Dice(DiceTypes.d6));
cb.Add(new Dice(DiceTypes.d6));
cb.Add(new Dice(10000));
// roll the cup
cb.Roll();
// custom dice
var diceCustom = new CustomDice(new[] {"Eagel", "Snake", "Bear", "Wolf", "Fox", "Cat"});
//roll the dice
diceCustom.Roll();
// multiple custom dice
var cb = new CustomDicesCup();
cb.Add(new CustomDice(new[] {"Eagel", "Snake", "Bear", "Wolf", "Fox", "Cat"}));
cb.Add(new CustomDice(new[] {"Human", "Mammel", "Insect"}));
cb.Add(new CustomDice(new[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}));
cb.Add(new CustomDice(new[] {"Eagel", "Snake", "Bear", "Wolf", "Fox", "Cat"}));
// roll the cup
cb.Roll();