# Drawstep — Texas Hold'em: table model Generated from Drawstep's game registry (engine id `holdem`). Wiki page: https://drawstep.xyz/wiki/holdem · this document: https://drawstep.xyz/wiki/drawstep-holdem-ai-pack.md. No-Limit Texas Hold'em for two to six players, dealt from a standard 52-card deck by the classic-games engine. Nobody brings a deck: everyone sits down with the same stack (1000 chips by default), the blinds start at 10/20 and can go up every so many hands, and hands are dealt until one player has every chip. The engine shuffles from the game's seed, moves the button and the blinds (heads-up rules included), enforces every bet and raise (minimum raises, short all-ins that don't reopen the betting), returns uncalled bets, builds the side pots, decides the showdown with the best five of seven cards and splits tied pots. You see your own hole cards only; spectators see none. Hosts can seat easy, medium and hard bots. Tables are **enforced** only: the classic-games engine deals from a standard 52-card deck and runs every rule. Nobody brings a deck and there are no custom cards: a classic card is a plain id — `classic:AS` is the Ace of Spades, `classic:TH` the Ten of Hearts (ranks 2–9, T, J, Q, K, A; suits S, H, D, C). ## No-Limit Texas Hold'em — the rules the table runs **The game.** Two to six players sit down with the same stack of chips (the host's starting stack, 1000 by default). Hands are dealt until one player has every chip; a player with no chips left is out, and finishing places are kept in the order players go out (two knocked out in the same hand: whoever started it with more chips finishes higher). Leaving the table folds your hand and takes your chips out of play. **The deck.** One standard 52-card deck, shuffled for every hand from the game's seed — so the record of the actions replays the very same game. **The button and the blinds.** The first button is drawn; after every hand it moves to the next player still in, and the blinds follow it: the small blind is the button's left, the big blind the next player. **Heads-up** the button posts the small blind, acts first before the flop and last after it. A player who can't cover a blind posts what they have and is all-in; the full big blind is still the bet to call. When the host sets an increase, the blinds rise every so many hands (10/20 → 15/30 → 20/40 → 30/60 → 40/80 → 60/120 → 80/160 → 100/200 → 150/300 …). **The deal.** Two hole cards each, one at a time from the button's left. Before the flop the player left of the big blind acts first; on the flop (three cards), the turn and the river (one card each, every street after a burn card) the first player still in left of the button does. **Betting (no limit).** On your turn you may fold, check (nothing to call), call, bet (nobody has bet on this street) or raise, or go all-in. Bets and raises are **to** amounts — what your bet on this street becomes. The smallest bet is the big blind; the smallest raise adds at least the last full bet or raise on this street (the big blind before anyone has). You may always go all-in for less. An all-in that adds less than a full raise does **not** reopen the betting: a player who has already acted and now faces less than a full raise may only call or fold (several short all-ins that add up to a full raise do reopen it). The big blind keeps its option to raise when everyone just calls. A round ends when everyone still able to bet has acted and matched the highest bet. **Uncalled bets and side pots.** The part of a bet nobody matched goes back to its owner. Once players are all-in for different amounts the pot splits into a main pot and side pots: each player can win only what they matched. **The showdown.** When the river's betting ends with two or more players left, the last player to bet or raise on the river shows first (when nobody did, the first player left of the button); the others show in turn when their hand can still win and muck it otherwise. When a player is all-in and the betting is over, every hand is turned face up at once and the board is dealt out. Each pot goes to the best five-card hand among the players who can win it; equal hands split it, odd chips going to the winners closest to the button's left. An uncontested winner shows nothing — but anyone dealt into the hand may show their cards once it is over. **Hands, high to low.** Straight flush (the ace-high one is a royal flush) · four of a kind · full house · flush · straight · three of a kind · two pair · one pair · high card. Ties are broken by the ranks that make the hand and then the kickers; suits never break a tie. The ace is high, and low only in the five-high straight A-2-3-4-5 (the wheel). **What you see.** Your own hole cards, the board, every stack, bet and pot. Nobody else's hole cards until they are shown — spectators see no hole cards either (except at a table where only bots play). **Bots.** Hosts can seat bots (easy, medium, hard). They estimate their equity by simulating the unseen cards (they never see anyone's hand), weigh it against the price of a call, and bet in proportion to the pot; harder bots estimate more precisely, demand better odds, raise more readily, bluff now and then and use their position. ## Zones | Zone | Label | Kind | Visibility | Notes | |---|---|---|---|---| | `deck` | Deck | pile | hidden | ordered · shared | | `hand` | Hole cards | hand | owner | | | `board` | Board | row | public | shared | | `muck` | Muck | pile | hidden | shared | Hand zone: `hand` · library: `deck` · main surface: `board` · discard: `muck`. Seats: 2 / 3 / 4 / 5 / 6. ## Counters - `chips` — Chips, starts at 1000 (primary) ## Phases Pre-flop → Flop → Turn → River → Showdown ## Deck rules A deck list is `{ "name", "engine": "holdem", "format", "zones": { "": ["", …] } }`; copies are repeated ids. Formats: | Format | Zones (min–max, allowed types) | Max copies | Notes | |---|---|---|---| | No-Limit | | 1 | | ## Card adapter Types: Playing card · resource: Rank · stats: Rank · colors: Spades, Hearts, Diamonds, Clubs.