bcook/blackjack + blackjack-challenge: rotating dealers who retire with the shoe#98
Merged
Merged
Conversation
…th the shoe
Every shoe now belongs to a named dealer off a per-table roster, and the two
retire together at the next betting window: reaching the cut card swaps the
dealer, and a slow (heads-up) shoe hits a 20-hand cap first — either way the
incoming dealer brings a freshly shuffled shoe, as on a real casino floor.
On the felt, the fixed D E A L E R label becomes the working dealer's
spaced-caps nameplate, the wait/play lines name the dealer, and a changeover
is announced where the cards land ("Marge steps away - Dex takes the shoe")
through that betting window. Blackjack staffs a classic floor crew; The
Star's Challenge table deals in star names.
The opening dealer derives from cfg.Seed rather than r.Rand(), and the
reshuffle moving from deal-time to the betting window consumes the same RNG
draws in the same order, so the seeded card stream is byte-identical and the
smoke scripts' choreographed deals (seed 58 / seed 16) replay unchanged —
verified by native replays of both first deals.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Smoke screensDeterministic scripted screens for
|
Show the working dealer's name as written ("Vega"), not letter-spaced caps
("V E G A") — reads as a person's name, and drops the spacedCaps helper.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
shellcade published this release to the arcade. ✅ |
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
Both blackjack tables now staff a rotating crew of named dealers, and each dealer retires together with their shoe — the real casino rhythm, where dealers rotate off on a schedule and the incoming dealer always starts from a fresh shuffle.
D E A L E Rlabel becomes the working dealer's spaced-caps nameplate, the idle line reads(dealer Marge waits for bets), the dealer-play beat readsMarge plays..., and the changeover is announced brightly where the cards land:Marge steps away - Dex takes the shoe.Determinism / smoke safety
The smoke scripts are choreographed around exact cards from fixed seeds (seat 0's splittable pair of tens on seed 58; the pair of eights on seed 16). To keep that stream byte-identical:
cfg.Seed, never fromr.Rand();Verified by native replays of both seeded first deals — the choreographed cards arrive unchanged.
Tests
Three new tests per game (rotation at the cut card incl. felt-rendered announcement and no double-rotation on an empty-betting reopen; rotation at the 20-hand cap; per-deal hand counting + note clearing), plus the existing nameplate signage assertion updated.
go test,go vet, andlint-widthclean in both games.🤖 Generated with Claude Code