m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-08-30 17:46:07 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-08-30 17:46:07 -0400
commit5087cde4825d91112cad565c68d81296359cf4d8 (patch)
treead9dd27b079b1f41aa07c66f4f401c645241e25c /README.md
parent94bbae437d98c103d1dae09be9949bcf26e8bcf9 (diff)
Implement multiplication
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index d5cbbbc..aecf2fe 100644
--- a/README.md
+++ b/README.md
@@ -80,6 +80,7 @@ The parser recognizes the following grammar:
| 'd' Die
| Die ' + ' Die
| Die ' - ' Die
+ | Die ' * ' Die
| Die '+' Die
| Die '-' Die
| '-' Die
@@ -106,6 +107,8 @@ Semantics are defined in terms of the `pool` function.
`D`.
* `-D` returns the opposites of values generated by `D`.
* `D - E` is equivalent to `D + (-E)`.
+* `D * E` generates a dicepool with a single value - the produc of `roll(D)` and
+ `roll(E)`.
* `D+E` is the additive bonus operation. For each die in `D`'s pool, the die is
rolled and `roll(E)` is added to its result.
* `D-E` is equivalent to `D+(-E)`.