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.
14
stars
1
forks
source link
Support subtraction of expressions #63
Closed
brentleyjones closed 8 years ago
Needs to support:
-
binary operator for expressionssubtract
method forFrequencyDistribution
ProbabilityMass
(I'm honestly not sure on the name yet)CustomStringConvertible
conformance0 - expression == -expression