# The Magnificent Dice Roller

## Dice Notation

Dice Notation is a way of specifying different dice rolls, in the form of [number of dice]d[size of dice][optional modifier].

For instance, if you wanted to roll one standard six sided dice, you would write it as "1d6". The "d" in the middle stands for "dice". The number before the "d" indicates how many dice to roll. In this case, one die. The number after the "d" indicates the type of die as determined by the number of faces it has. In this case it's a six sided die, so the number is "6".

If you wanted to roll more than 1 dice you could write 3d6, for example. This would roll 3 six sided dice then the values would get added together.

Sometimes a modifier is added to the end of the notation. 1d6+1 would indicate you should add one to the result of a roll of a six sided dice, giving a result of 2 - 7, inclusive.

Common die types used in gaming are 4, 6, 8, 10, 12, 20, or 100. The Magnificent Dice Roller is all digital so you don't have to be constrained by the physics of real world dice. There's no reason you couldn't roll a 3 sided die (1d3), or a million sided die (1d1000000).

Some examples of dice notation using different kinds of dice might be...

1d4
Roll one four sided die
3d6
Roll a six sided die three times, and sum the result
2d8+3
Sum two eight sided dice, then add three
1d10-1
Roll one ten sided die, and subtract one
1d100
Roll a hundred sided dice. Useful for percentages
1d%
Shorthand notation for 1d100

The Magnificent Dice Roller lets you perform the same roll multiple times...

1d20+5*2
Roll one twenty sided die and add five, then roll it all again a second time

The Magnificent Dice Roller also lets you batch different die rolls together...

1d20,1d8+1,1d6
Roll a twenty sided die, then roll an eight sided die and add one, then roll a six sided die

## Fudge Dice

I only learned about this one recently, but the Fudge game system uses fudge dice instead of more typical numbered dice. A fudge dice looks like a normal six sided die, but is marked with a pair of plus signs ("+"), a pair of minus signs ("-"), and a pair of blank sides.

The idea is that in the game, an action a character might perform can be influenced for the better or worse (or maybe not influenced at all).

You might roll a fudge roll to see if the action taken was a better than average attempt (rolling a plus), worse than average (rolling a minus), or just plain average (rolling a blank).

The Magnificent Dice Roller now accepts fudge dice notation, as indicated by writing "f" for the die type. eg...

1df
Rolling a single fudge dice
3df
Rolling three fudge dice
4df+1
Rolling four fudge dice, and adding one to the result.

The Magnificent Dice Roller converts fudge rolls to a numeric value. Two plusses (++), for example, would be shown as "2". Two minusses ("--") would be "-2". A plus and a minus (+-) would be zero (0), as would two blanks (00).