blackjack: bigger bet ladder, sticky backs, low-stack re-buy, doubled tag#83
Merged
Conversation
… tag - Extend the main bet ladder to 10→25→50→100→250→500→1000→2500→5000→10000 (the ×2.5/×2/×2 climb repeated each decade), and grow the Perfect Pairs / behind side stakes to match so side action can scale with the main bet. - Re-buy a seat once it can no longer cover the minimum stake (chips < betTiers[0]), not only at zero — a 1–9 chip stack was soft-locked in betting (Confirm requires chips >= 10) and never reached the re-buy path again. - Make behind / their-pairs bets sticky between rounds like the main bet and own pairs: carryBacks prunes backs on departed targets and clears last round's per-back results; clampBacks lowers carried stakes a thinned stack can no longer afford. - Flag a doubled hand with a " DBL" tag on its value line (single hand and stacked split) so onlookers can see who doubled down. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Smoke screensDeterministic scripted screens for |
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.
Four blackjack fixes/requests.
Changes
Low-stack re-buy — A seat is now staked back to the re-buy stack once it can no longer cover the minimum bet (
chips < betTiers[0]), not only at zero. Previously a 1–9 chip stack was soft-locked in betting (Confirm requireschips >= 10) and never reached the re-buy path again.Sticky behind bets — Behind / their-Perfect-Pairs bets now carry between rounds like the main bet and own pairs.
carryBacksprunes backs on targets who left the table and clears last round's per-back result fields;clampBackslowers carried stakes a thinned stack can no longer afford. A target who's still seated but sits a round out keeps their sticky back and just voids that round (existing behavior).Bigger bet ladder — Main bets now climb
10 → 25 → 50 → 100 → 250 → 500 → 1000 → 2500 → 5000 → 10000(the ×2.5/×2/×2 pattern repeated each decade). Perfect Pairs / behind side stakes extended to match so side action scales with the main bet.Doubled indicator — A doubled hand now shows a
DBLtag on its value line (single hand and stacked split), so onlookers can see who doubled down.Testing
go test ./...— all pass (addedTestRebuyWhenBelowMinimumBet,TestBehindBetsAreStickyAcrossRounds,TestStickyBackPrunedWhenTargetLeaves,TestDoubledHandTagged,TestDoubledHandRendersDBL; updatedTestPairsSideBetLoopsOnPfor the longer ladder).shellcade-kit smoke) — builds to wasm and plays through all 8 shots.Note
startChips/rebuyChipsremain1000, so a fresh or re-bought player builds up to the new 2500+ tiers rather than starting there.🤖 Generated with Claude Code