|
Index Documents Publications ETH Diving Software Pictures Server info Blog Search |
Roll
This command-line based program rolls a user-defined
dice sequence and displays the result. The dices to roll
are defined using Downloadroll is free and distributed under the GNU general public license version 2. Feel free to send any comment, improvement or suggestions to matteo@corti.liSources
DocumentationUsage
roll [OPTION] expression
Options
ExpressionsExpressions are in dice notation (also known as dice algebra, common dice notation or RPG dice notation).
Die rolls are expressed in the form If the final number is omitted, it is assumed to be a six.
To this basic notation, an additive modifier can be
appended, yielding expressions of the form,
Percentile dice (
|
3d6
|
rolls 3 6-sided dices and sums the results
(can be abbreviated with 3d)
|
1d8 + 3
|
rolls 1 8-sided die and adds 3
(can be abbreviated by d8+3)
|
d%
|
rolls 2 10-sided dices: one represents the tens and the other units |
1d6x5
|
rolls 1 6-sided dice and multiplies the result by 5 |
1d6 / 2
|
rolls 1 6-sided dice and divides the result by 2
(1d3)
|
4d6h3
|
rolls 4 6-sided dices and keeps the 3 highest results (discarding the lowest) |
6{3d6}
|
rolls 3d6 6 times
|
1d6>2
|
rolls 1d6 until the result is bigger than 2
|
4dF
|
rolls 4 Fudge dices |
expression := term { "+" term | "-" term } .
term := number | factor [ ("*"|"/") number |
number ("*"|"/") factor | "(" expression ")" .
factor := number FilteredDice [ ("h"|"H"|"l"|"L") number ] | FilteredDice .
FilteredDice := dice | dice (">"|">="|"<"|"<="|"!=") number .
dice := "d" | "D" [ number | "%" | "F" | "f" ] .
|
|
|
|
Bone Marrow Donors Worldwide |