blackjack: back another seat (behind bet + their Perfect Pairs)#81
Merged
Conversation
Let a player wager on another seat two ways: a "behind" bet that rides the backed player's first hand vs the dealer, and a Perfect Pairs bet on the backed player's first two cards. - Betting gains a focus-cycle: B moves the editing focus across yourself and each other seat; Up/Down and Left/Right then edit whoever is focused (your stake+pairs, or a back's behind+their-pairs). Every raise is clamped to your total chip budget. Back any number of seats. - Their-Perfect-Pairs settle at the deal (25/12/6, voided if the target sat out); the behind bet settles at the dealer reveal on the target's first hand (even money, 3:2 on a natural blackjack, push), refunded if the target left mid-round. All back deltas fold into the backer's net. - The relocated rules tagline freed rows 8-9, so the seat block shifts up one row to open a dedicated, tile-attributed backers line: each backed seat lists its backers' character tiles with their stake (betting) or net (results). Focused detail shows on the action bar. Adds the B (BACK) touch control. New unit/render tests cover focus cycling, budget clamping, deal/settle resolution (win/refund/void), the backers line, and the focused-target detail. smoke.yaml extended so seat0 backs seat1 (behind + their pairs) with focus and payout shots. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Smoke screensDeterministic scripted screens for |
… pairs Reworks the back-a-seat betting controls for clarity: - Left/Right now change which seat you're betting on (yourself, then each other seat), matching the rail spatially — replacing the dedicated B focus-cycle key. - Up/Down set the focused seat's hand bet (your stake, or the behind bet on a backed seat) — unchanged. - P / B cycle the Perfect Pairs side bet up / down for the focused seat (yours, or theirs) — moved off Left/Right, and B gives a backward step so the tiers no longer wrap-only. The B touch control is relabelled PAIRS. Action-bar hints and the smoke scenario are updated to the new mapping; the round still reconciles (seat0 WIN +155, seat1 WIN +145). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Per-bet looping keys during betting, each cycling up a tier and resetting to 0 past the top: - P loops the Perfect Pairs side bet for the focused seat (yours, or theirs when focused on another seat). - B loops the behind bet on the focused seat (none on yourself). - Up/Down stay on your own main stake; Left/Right still pick the seat. Behind moves off Up/Down onto B, so each side bet has a single dedicated cycle key. The B touch control is relabelled BEHIND. Hints and the smoke scenario updated; the round still reconciles (seat0 WIN +155). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Lets a player wager on another seat, two ways:
Builds on the Perfect Pairs work in #80.
Betting controls
Settlement
Display
The relocated rules tagline (#80) freed rows 8–9, so the seat block shifts up one row to open a dedicated backers line: each backed seat lists its backers by character tile with a compact stake (betting) / net (results); focusing a seat spells out your back on the action bar (
BACKING ⟨tile⟩seat1 B behind 25 P pairs 10 Left/Right seat).Tests
affordTier/loopTierbudget clamp + reset-to-0; behind-bet settlement via room tests (win/refund/void).smoke.yaml(seed 58): seat0 backs seat1 (behind + their pairs) —BACKINGfocus screen, backers line, payout folded in (seat0WIN +155, seat1WIN +145).go test ./...green,go vetclean.game.wasmnot committed;smoke-out/is gitignored (CI regenerates the preview).Note: on the touch deck,
Pshares theSPLITchip (used during turns);Bis theBEHINDchip. Keyboard play is clean and the action bar spells the mapping out.🤖 Generated with Claude Code