TabletopAssistant / DiceKit

Swift framework for expressing and evaluating dice notation (e.g., d20, 4d6+4, 3d8×10+2), which is commonly used in tabletop role-playing games.
Apache License 2.0
14 stars 1 forks source link

Allow `Int` to be used in addition and multiplication operators #53

Closed brentleyjones closed 9 years ago

brentleyjones commented 9 years ago

Also remove unneeded tests (all expressions work, by proof of compiler and induction... no need to test the different expressions in the other expressions).

JonathanHoffman commented 9 years ago

:+1: (besides typo in PR message). Very clever, I feel like I should have thought of that!

Edit: ninja'd

brentleyjones commented 9 years ago

:dash: