blackjack-blitz-deck
Fast blackjack rebuilt with a persistent physical card-deck table renderer.
About this tile
Blackjack Blitz Deck is a fast mobile blackjack table for Poe. Pick a wager, deal, then hit, stand, or double before the dealer reveals the hole card. Bankroll, bet, cards, deck order, outcome, and the last action id are stored in synced-store so a player can close the app and reopen the same hand.
This version uses Jeffrey Young's @jeffreyyoung/card-deck framework as the physical table renderer. The app owns blackjack rules and zone anchors; the deck framework owns one persistent button per physical card id and moves those nodes between stock, dealer, player, and discard zones with transforms.
Controls
- Deal starts a saved hand from a deterministic shuffled deck.
- Hit draws one card to the player hand.
- Stand reveals the dealer hole card and resolves the round.
- Double is available on the first move when bankroll covers the extra wager.
- Next hand / Rebet keeps the current bankroll and starts a new saved hand.
Rules
Aces count as 11 unless that would bust the hand. Dealer hits until 17. Blackjack pays 3:2, normal wins pay even money, pushes return the wager, and busts lose the wager.
Implementation notes
- Pure rules live in
logic/blackjack.tswith deterministic seed coverage. - Synced-store mutators persist the active round and are idempotent by action id.
- Card rendering lives in
ui/cardDeckRenderer.ts; active cards are not duplicated into panels. - DOM tests assert exactly 52 physical card nodes and preserve representative node identity across hit, stand/reveal, and new-deal movements.