casino: betting-screen re-buy affordance for a broke seat (blackjack, roulette)#90
Merged
Merged
Conversation
… roulette) A player whose balance dropped below the minimum stake could get soft-locked at the betting screen with no way to trigger the platform broke-relief re-buy: the auto-rebuy only fires post-hand/post-settle, and the bet action silently no-ops when broke. Since credits are account-wide, a seat can arrive broke (walked over from another casino game, or a rebuy that momentarily hit the daily limit). - blackjack: when broke (bal < betTiers[0]) the betting bar shows "BROKE - press R to re-buy credits" and R triggers the buyback. Test added. - roulette: same class of gap (can't place a chip below the 5 min, re-buy only post-Settle). Adds a broke prompt + B key (R is "ready") that calls Buyback, with a betting-screen test. pokies and scratchies already recover a broke seat from their normal action (a failed spin / ticket-buy auto-triggers the re-buy), so they are unchanged. Complements the platform fix that makes Buyback wait for an in-flight checkpoint instead of refusing (which was stranding the post-hand auto-rebuy). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W7oJQSTva5xgbAZomdV5Jj
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.
Why
A player whose balance fell below the minimum stake could get soft-locked at the betting screen with no way to trigger the platform broke-relief re-buy (reported live on blackjack). The auto-rebuy only fires post-hand/post-settle, and the bet action silently no-ops when broke. Because credits are account-wide, a seat can arrive broke — walked over from another casino game, or after a rebuy that momentarily hit the daily limit.
Changes
bal < betTiers[0]) the betting bar showsBROKE - press R to re-buy credits, andRtriggers the buyback. (TestBrokeSeatRebuysOnRInBetting)Bkey (Ris already "ready") that callsBuyback. (TestRebuyAtBettingScreen)pokies and scratchies are unchanged — verified they already recover a broke seat from their normal action (a failed spin / ticket-buy auto-triggers the re-buy with visible feedback), so adding a redundant prompt would be wrong.
Companion
Complements the platform fix (shellcade#213) that makes
Buybackwait for an in-flight checkpoint instead of refusing — which was stranding the post-hand auto-rebuy exactly when a busting hand crossed the checkpoint threshold.All four game modules build/vet/test clean. ASCII-only load-bearing glyphs; no wasm/artifacts committed.