5 minutes
The Deck and the Deal Queue
The betting core runs as pure data: the stacks, the pot, and a pointer to whose turn it is. But there is nothing to bet on yet. The table needs a deck — and under that sits a harder question. Soon this becomes a four-seat game, and every player runs the same code on their own machine. So how do all four agree on the exact same shuffle? Get that wrong, and one player sees the ace of spades while another sees a seven.
The deck builds no meshes and draws nothing on screen. It makes card ids as strings and announces each one over the bus — and the way it shuffles is the key to the whole multiplayer story.

Add the Dealer to the scene
Open src/scenes/poker.json and add one entity next to Felt:
The component source already lives at src/components/DeckDealer/. Lesson 1's bjs download scene PokerTableDirector --all pulled it in. These settings spell out Texas Hold'em. playerCount: 4 and cardsPerPlayer: 2 mean four seats with two hole cards each. riverSize: 5 is the community row. localIndex: 0 marks which seat is yours. And roomCode: "table-7" is the interesting one — it is half of a seed.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.