From 5087cde4825d91112cad565c68d81296359cf4d8 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 30 Aug 2017 17:46:07 -0400 Subject: Implement multiplication --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') 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)`. -- cgit v1.2.3