From 3e11f6c8268066068c45f4fd760516b8de4a4b28 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 15 Jul 2017 23:08:57 -0400 Subject: Add information about unary 'd' --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 0ad6988..e2474b3 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ games are supported. You can do things like: * `XdY`: rolls `X` `Y`-sided dice (`1d6` is a single 6-sided die, `2d4` is two 4-sided dice). +* `dX` is the same as `1dX` (so you can shorten `1d6` to `d6`). * `dice +/- constant`: rolls the dice, adds/subtracts the constant. * `dice +/- moreDice`: sums/takes the difference of the results of rolling `dice` and `moreDice`. @@ -51,6 +52,7 @@ ignored): Die ::= | '(' Die ')' | Die 'd' Die + | 'd' Die | Die '+' Die | Die '-' Die | '-' Die @@ -64,6 +66,7 @@ Semantics are defined in terms of the `pool` function. equal to the result of rolling `E`. `pool` returns an array of `roll(D)` numbers, each between 1 and `roll(E)`. *Note:* if `D` or `E` evaluates to a negative number, the behavior is undefined. +* `dD` is equivalent to `1dD`. * `D+E` appends the dice pool generated by `E` to the dice pool generated by `D`. * `-D` returns the opposites of values generated by `D`. -- cgit v1.2.3