-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update scores and bonus points at turn end #188
Conversation
2f52410
to
80c4a2b
Compare
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.
Nice! We don't seem to be using the output yet, as far as I can tell, and we're still manually getting stuff on turnEnd
- can we start using the output instead?
Also, the WIP
s need removing from the commit messages
d3fddfe
to
cc86dda
Compare
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.
Looking good! Mostly just a few suggestions, though there's one test assertion that needs fixing
cc86dda
to
aeb9730
Compare
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.
Looking good. Just one thing about the git history, but otherwise I think it's good to go. Nice work!
(I can't approve it because I opened the PR)
Co-authored-by: Rich James <[email protected]>
This is the correct way to output data from a machine when it reaches its final state. See docs: https://stately.ai/docs/final-states#output
aeb9730
to
be338ad
Compare
The logic here is relatively complex so worthwhile testing. I have opted to only test the exported functions as the smaller, local ones are very simple. Co-authored-by: Rich James <[email protected]>
This is just useful for logging to see if the interactions in the model are working as expected. Depending on the guard we will either play another turn or end the round.
be338ad
to
1f086f6
Compare
This covers some more of #180