diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-08-30 17:46:07 -0400 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-08-30 17:46:07 -0400 |
commit | 5087cde4825d91112cad565c68d81296359cf4d8 (patch) | |
tree | ad9dd27b079b1f41aa07c66f4f401c645241e25c /README.md | |
parent | 94bbae437d98c103d1dae09be9949bcf26e8bcf9 (diff) |
Implement multiplication
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)`. |