Skip to content

bcook/blackjack + blackjack-challenge: rotating dealers who retire with the shoe#98

Merged
BCook98 merged 2 commits into
mainfrom
bcook/blackjack-dealer-rotation
Jul 10, 2026
Merged

bcook/blackjack + blackjack-challenge: rotating dealers who retire with the shoe#98
BCook98 merged 2 commits into
mainfrom
bcook/blackjack-dealer-rotation

Conversation

@BCook98

@BCook98 BCook98 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

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.

  • When it happens: at the next betting window once the shoe is spent — the cut card is reached (a busy 5-seat table gets there in ~a dozen hands), or the dealer has dealt 20 hands from a slow-burning shoe (so a heads-up table doesn't keep one dealer for 40+ hands). Either way the incoming dealer brings a freshly shuffled shoe.
  • On the felt: the fixed D E A L E R label becomes the working dealer's spaced-caps nameplate, the idle line reads (dealer Marge waits for bets), the dealer-play beat reads Marge plays..., and the changeover is announced brightly where the cards land: Marge steps away - Dex takes the shoe.
  • Crews: Blackjack staffs a classic floor crew (Marge, Dex, Ruthie, Sal, Pearl, Gus, Vera, Cliff); The Star's Challenge table deals in star names (Vega, Nova, Orion, Luna, Rigel, Stella, Cass, Astra).

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:

  • the opening dealer derives from cfg.Seed, never from r.Rand();
  • the reshuffle moved from deal-time to the betting window, but consumes the same RNG draws in the same order (no other RNG consumer sits between the two points).

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, and lint-width clean in both games.

🤖 Generated with Claude Code

…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>
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

Smoke screens

Deterministic scripted screens for 195df873e1577d83e7a18b15df697759e9ddf21e (what is this?)

games/bcook/blackjack-challenge — 18 screens

01-bet.seat0
01-bet.seat0

01-bet.seat1
01-bet.seat1

02-backing.seat0
02-backing.seat0

02-backing.seat1
02-backing.seat1

03-sidebet.seat0
03-sidebet.seat0

03-sidebet.seat1
03-sidebet.seat1

04-dealt.seat0
04-dealt.seat0

04-dealt.seat1
04-dealt.seat1

05-split.seat0
05-split.seat0

05-split.seat1
05-split.seat1

06-draw.seat0
06-draw.seat0

06-draw.seat1
06-draw.seat1

07-payout.seat0
07-payout.seat0

07-payout.seat1
07-payout.seat1

08-ready.seat0
08-ready.seat0

08-ready.seat1
08-ready.seat1

09-next.seat0
09-next.seat0

09-next.seat1
09-next.seat1

games/bcook/blackjack — 16 screens

01-bet.seat0
01-bet.seat0

01-bet.seat1
01-bet.seat1

02-backing.seat0
02-backing.seat0

02-backing.seat1
02-backing.seat1

03-sidebet.seat0
03-sidebet.seat0

03-sidebet.seat1
03-sidebet.seat1

04-dealt.seat0
04-dealt.seat0

04-dealt.seat1
04-dealt.seat1

05-split.seat0
05-split.seat0

05-split.seat1
05-split.seat1

06-payout.seat0
06-payout.seat0

06-payout.seat1
06-payout.seat1

07-ready.seat0
07-ready.seat0

07-ready.seat1
07-ready.seat1

08-next.seat0
08-next.seat0

08-next.seat1
08-next.seat1

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>
@BCook98
BCook98 merged commit aaece3b into main Jul 10, 2026
6 checks passed
@BCook98
BCook98 deleted the bcook/blackjack-dealer-rotation branch July 10, 2026 03:47
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

shellcade published this release to the arcade. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant