diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-09-02 00:56:13 -0400 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-09-02 01:02:16 -0400 |
commit | b8657836f1b6aac63de9f6a618c31b2e65fba3e7 (patch) | |
tree | 3e6775b259ab53fb17bc8addda02a60d27e59a43 | |
parent | 1cc6b80cfd4875f289837421cdbe81e3dfcf0ed1 (diff) |
Update README
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -93,6 +93,7 @@ The parser recognizes the following grammar: | Die 'a' Die | Die 'T' Die | Die 't' Die + | Die ' x ' Die Semantics are defined in terms of the `pool` function. @@ -140,6 +141,9 @@ Semantics are defined in terms of the `pool` function. 0, otherwise its value is 1. * `DtE` is like `T` but dice with values *higher* than what was rolled on `D` are counted as 0's, the rest as 1's. +* `D x E` will repeatedly roll `D`. First `E` is rolled, then `D` is rolled as + many times as the value rolled on `E`. The pools generated by `D` are + concatenated to generate the new pool. Additionally: @@ -153,3 +157,6 @@ Additionally: equivalent to `1d(2d3)`, use explicit parentheses if you need `(1d2)d3`). * Die operations bind stronger than the binary arithmetic operations (`1d6 + 1d4` is equivalent to `(1d6) + (1d4)`) and the bonus operations. +* The repetition operation ` x ` is left assosiative. It binds stronger than + the standard arithmetic operations, but weaker than the dice operations and + the bonus operations. |