Repository navigation
feat(holdem): add a recap of the last five hands - #106
Merged
Merged
Conversation
- Keep the last 5 finished hands in table state: board (both boards when run twice), pot, and each dealt-in player's cards, hand, winnings and net - Redact recap cards per viewer: only hands shown down or turned face up are public, everyone still sees their own - Show the recap under the standings in the Net sheet - Cover the recap contents, redaction, fold wins and the 5-hand cap in tests Closes #58 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0166pZu7YE6Ei4yq58F3K1vk
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Jonas · project thread
Closes #58. Players can now look back at what someone had and how a pot was split after the next hand starts.
history) in table state, recorded when the table clears after the showdown beat: board (both boards when run twice), pot paid out, and for each dealt-in player their cards, hand name, winnings and net.redactTx: only hands shown down or turned face up after a fold win are public, and everyone still sees their own cards. Mucked and folded hands stay hidden.tests/texasholdem.recap.test.tscovers the recap contents, redaction for every viewer, fold wins with and without Show, and the 5-hand cap.Checked: lint, typecheck, test (419 pass) and build locally, plus a browser run against the local server with two bots (recap rendered with hidden bot hands and visible own hands).
Generated by Claude Code