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

[WIP] Add Successfulness types #119

Open brentleyjones opened 8 years ago

brentleyjones commented 8 years ago

Unlike #71, this just adds the types needed to support success checking. Therefore it doesn't complete #59, since it needs some additional support at the ExpressionType level. Though, if you change ExpressionProbabilityMass to ProbabilityMass<OutcomeWithSuccessfulness<Int>> you can start to see where this is heading.

Features

brentleyjones commented 8 years ago

@JonathanHoffman Would you mind adding playground support for this? It would help prove it out more by having someone else look at it from the API point of view. Also, I love your playground pages. If not I will, just wondering if you would want to.

brentleyjones commented 8 years ago

@JonathanHoffman This got lost with the holiday. Are you planning on doing the playground pages, or should I assign this back to myself?