-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dice stats #105
Dice stats #105
Conversation
Large block of fixes, netrunner
Features 23/12/21
Quick database fix
… implement die operations properly.
…ror, requiring a rework of DiceStats
… to have half implemented keep/drop, onto rerolls and integration
#66 is the issue related to this branch and PR |
…enting. added stats help page. made graph nicer (thanks john).
Features 06/01/22
For .sayblah, chunk was correctly consuming "say", but then we got an unknown error when it tried to consume spaces
…ot sure how successful this was, but it should at least be on par.
…s to be expanded in future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First off, this is all very cool and seems to generally hold up to testing - my comments are mainly documentation-related. I also have a few comments from my testing, which I reported to you on Discord but I'm repeating here:
!r 6d
reports two different errors, one with "couldn't" and another with "could not". Probably should be standardised, and maybe report one error if possible.- Missing bracket errors (e.g.
!r maximum({d2, d2)
and!r maximum({d2, d2}
) report the parentWithError
rather than a more useful child error. Use<??>
if you ever want to escape out of theWithError
's error. (Maybe comment on<??>
with that?) !r 2d(d6)
is incorrectly flagged as an error.
Otherwise, looks amazing!
- monoid-extras-0.6.1 | ||
- statestack-0.3 | ||
- diagrams-rasterific-1.4.2.2 | ||
- git: https://github.com/L0neGamer/haskell-distribution.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed on Discord this is absolutely fine - something to consider when we next update packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with changes made.
adds a subcommand to roll that performs statistics on the given expression
the statistics are turned into a graph which is uploaded to discord
This is feature complete, allowing any expression to be turned into a distribution, which can then be analysed and prettified (ie turned into a graph and means and modal values extracted).
Other notable changes are additions to the docs, removal of the parameterised monad in funcinfobase, modifications to the expression parser to try and get better error messages (that failed, but keeping the changes), changes to the command parser to give better errors as well.