How Poker Bots Think: Game States, Mixed Strategies, EV and the Math Behind Every Decision
Can You Model Poker at All?
Every bot I've tested — from 2010-era scripts to 2026 hybrid engines — is, at bottom, a table of decisions plus a rule for when to leave the table. The interesting part is both halves. So how do poker bots make decisions? Not by «reading» you, and not by luck. Poker is a finite game of imperfect information: there is a countable number of situations a player can be in, and for each one a strategy says how often to fold, call or raise. That is the whole philosophy of how poker bots think. The engineering is how you build that table when the game has more situations than the universe has atoms, and how you fill it with numbers no human can exploit.
This article is only about the «think» step. The pipeline that sees the table and clicks is covered in our pillar on what a poker bot is; here we open the brain: game states, mixed strategies, expected value, the strategy table, the algorithm that fills it, and what happens when a bot leaves equilibrium to exploit you. Two worked spots at the end, with numbers you can check.
Key Takeaways
- Finite but enormous: heads-up limit hold'em has ~3×10^17 game states, no-limit ~10^160. A strategy is still a table — too big to store without abstraction.
- Randomising is mandatory: a pure strategy is predictable, hence exploitable. Bots mix at the exact frequencies the solution prescribes.
- EV is the only currency: the bot scores decisions, never outcomes, and remembers no hand.
- CFR fills the table: self-play plus regret matching converges to Nash. Cepheus: 0.986 mbb/g exploitability.
- Beyond the table: an opponent model, an adaptation curve, and the risk of being exploited yourself.
Poker Is a Finite Game — Just Not a Small One
An information set is everything a player knows at a decision point — their own cards, the board, the pot, the stacks and the full action history — bundled with everything they don't know, which is the opponent's cards. Two situations that look identical to you are the same information set, even if the hidden cards differ. A bot never sees «a hand»; it sees a node in a game tree it has visited a billion times in training.
Finite means modellable. Hold'em has 52 cards, a fixed number of streets, a fixed set of legal actions, and stacks that are integers of chips, so the tree of every possible sequence has an end. The stack size is part of the state: 66 and 67 big blinds are different nodes, because the all-in threshold and the pot geometry differ — engines take that literally.
«Finite» is not «small». Preflop there are 1,326 two-card combinations, which collapse to 169 strategically distinct starting hands once suits are ignored. From there it explodes. The 2024 survey by Sonawane and Chheda puts heads-up limit hold'em at roughly 3×10^17 game states; the Cepheus paper (Bowling et al., Science 2015) counts about 3.2×10^14 decision points. Heads-up no-limit is on the order of 10^160, more states than atoms in the observable universe. CFR+ has solved abstractions of up to about 10^13 information sets. Everything below is about the distance between 10^13 and 10^160.
| Game | Players · streets · cards | Approximate size | Status |
|---|---|---|---|
| Kuhn poker | 2 · 1 · 3 cards (J, Q, K) | 12 information sets | solved analytically; the CFR teaching example |
| Leduc hold'em | 2 · 2 · 6 cards | hundreds of information sets | solved; used for CFR vs deep-RL research |
| Heads-up limit hold'em | 2 · 4 · 52 | ~3×10^17 game states, ~3×10^14 decision points | «essentially weakly solved» (Cepheus, 2015) |
| Heads-up no-limit | 2 · 4 · 52, continuous sizing | ~10^160 | superhuman via blueprint + re-solving (DeepStack, Libratus, 2017) |
| 6-max no-limit | 6 · 4 · 52 | not meaningfully enumerable | superhuman via self-play + search (Pluribus, 2019); no equilibrium guarantee |
Why a Bot Must Randomize: Mixed Strategies and Exploitability
Mixed strategy, defined. A mixed strategy assigns probabilities to actions at an information set — «with this hand on this board, bet 60%, check 40%» — instead of always choosing one. Played at the right frequencies it leaves the opponent indifferent between their options, so no deviation can profit against it.
A pure strategy is a tell. If a bot always folds a given hand to a given bet, you bet that hand every time; if it always calls, you only bet for value. Randomising removes the pattern. The theoretical target is a Nash equilibrium: a pair of strategies where neither player can gain by deviating alone. The practical measure of distance from that target is exploitability, expressed in milli-big-blinds per game (mbb/g): how much a perfect counter-strategy could win against you. Cepheus reached 0.986 mbb/g in heads-up limit — a lifetime of play would not distinguish it from a perfect player.
Here is the insight the reference essay gets right and nobody expands: EV depends smoothly on the mix, so being slightly off the ideal frequency costs almost nothing, while being predictable costs everything. Take a river spot where calling wins $40 when the opponent is bluffing and loses $10 when they have it, and suppose against the opponent's current range calling is worth +$12 and folding $0. Then:
| Call frequency | EV per decision (call +$12, fold $0) | Loss vs the best mix |
|---|---|---|
| 30% | $3.60 | −$8.40 |
| 40% | $4.80 | −$7.20 |
| 50% | $6.00 | −$6.00 |
| 60% | $7.20 | −$4.80 |
| 70% | $8.40 | −$3.60 |
Shift the mix by ten points and EV moves by $1.20; the opponent cannot tell a 55% caller from a 60% caller without thousands of hands. That is why solvers tolerate rounding and why a bot that is «5% off» is not a broken bot. Players think bots are «random»; they are the opposite — exactly as random as the solution says, every time, because the action is drawn by a random number generator against the table's frequencies, not by mood.
EV Is the Only Currency: Why the Bot Doesn't Care Who Won the Hand
Expected value is the average result of a decision over all the ways the hand can play out, weighted by probability. Equity is your share of the pot if all cards were dealt out now. Outcome is what happened once. A bot optimises the first, computes the second on the way, and stores the third nowhere.
Worked numbers. You bet $100 into a $200 pot with 60% equity against a calling range; if called, the pot is $400 and your share is $240 for a $100 investment — EV +$140 against +$120 for checking it down, so the bet is worth +$20 over the check. Pot odds are the same arithmetic backwards: calling $100 into $300 means $100 to win $400, so you need 25% equity to break even — any hand with more equity is a profitable call, whether or not it wins this time. The right decision and the winning hand are different things; the bot grades itself on the first.
That is also why 10,000 hands say little about a bot's quality. Realised BB/100 bounces with the cards; EV BB/100 (all-in adjusted) bounces less; neither settles before tens of thousands of hands. Our variance explainer does the math.
| EV | Equity | Outcome | |
|---|---|---|---|
| What it measures | average value of a decision | pot share if cards are run out now | the result of one hand |
| When known | before the action | before the action | after the hand |
| Who cares | the bot | the bot, as an input | the human, usually too much |
Right decision ≠ winning hand. The bot doesn't tilt for three reasons: it has no emotional state; its «memory» of the last hand is exactly zero bytes; and it is scored on process, not result. The first is a feature. The second is the feature.
The Strategy Table: How 10^160 States Fit on a Server
A poker bot strategy is a lookup table: information set in, probability distribution over actions out. The entire design problem is that the table for no-limit hold'em does not fit anywhere. Engines shrink the game in three ways, and pay for each.
Card abstraction (bucketing). Hands with similar strength and potential are merged into buckets — all flush draws of roughly the same equity are one bucket, all weak pairs another. Research systems typically used around seven buckets per player per street, with transition probabilities between buckets as the board changes. The cost: two hands the solver treats as identical may deserve different lines.
Betting abstraction. Continuous sizings become a short menu — half pot, pot, all-in, perhaps two more — with a cap on raises per street. When an opponent bets an amount that isn't on the menu, off-tree mapping rounds it to the nearest branch. The cost: a bot that maps a 0.35-pot bet to «half pot» misreads the odds it is being offered, and good regulars find those seams.
Storage. Even abstracted, industry estimates for a full no-limit strategy across stack depths run from 17 to over 100 terabytes (vendor estimate, not a published figure). The 2017 answer: stop storing everything.
| What is abstracted | How | What it costs |
|---|---|---|
| Cards | ~7 strength/potential buckets per street, with transitions | similar-looking hands get identical play |
| Bet sizes | a menu of 3–6 sizes, off-tree bets mapped to the nearest | misread pot odds vs unusual sizings |
| Depth | solve a coarse full game, then re-solve the current street precisely | compute time at the table; a thinking delay |
Blueprint plus real-time solving. DeepStack (Alberta, 2017) introduced continual re-solving: carry a coarse blueprint for early streets, then, when the action reaches you, solve the remainder of the hand from this exact state with the real sizings and the real board. Libratus (Carnegie Mellon, 2017) used a blueprint for preflop and nested subgame solving from the flop onward, patching holes the humans found overnight. When a 2026 engine «thinks» for a second and a half on the river, that is re-solving, not theatre. And no, a language model isn't doing any of this — here's why LLMs don't work as poker bots.
How the Table Gets Filled: CFR Explained Without Code
Counterfactual regret minimisation, defined. CFR is the poker bot algorithm that fills the table by self-play: two copies of the strategy play each other, and at every decision each records how much better each alternative action would have done — its regret. Next time, actions are chosen in proportion to accumulated positive regret. Averaged over many iterations, the strategy converges to a Nash equilibrium (Zinkevich et al., Alberta TR07-14, 2007).
Three ideas, no code. Regret is the gap between what you did and the best thing you could have done, given how the hand went: you checked and lost the pot; betting would have won it; regret for «bet» goes up by the pot. Regret matching turns those tallies into a strategy: play each action in proportion to its positive regret, ignore the rest. Self-play closes the loop: both players update at once, every exploit one side finds is punished next iteration, and the average of all strategies played drifts toward a point where nothing is left to exploit.
Watch it happen in Kuhn poker: three cards (J, Q, K), one card each, ante 1, one bet of 1 allowed. Player 1 holds the Jack, the worst card, and must choose check or bet. Suppose at this iteration Player 2 folds a Queen to a bet three times in four, always calls with a King, and the current strategy is 50/50.
| Step | Bet with J | Check with J |
|---|---|---|
| Value vs Q (half the time) | ¾ × (+1 fold) + ¼ × (−2 called) = +0.25 | lose at showdown or to a bet: −1 |
| Value vs K (half the time) | −2 | −1 |
| Counterfactual value | −0.875 | −1.00 |
| Value of current 50/50 strategy | −0.9375 | |
| Regret after this iteration | +0.0625 | −0.0625 |
| Regret-matched strategy next iteration | bet 100% | check 0% |
The bluff with the Jack is born from the numbers: nobody wrote «bluff sometimes». Next iteration Player 2 regrets folding the Queen so often and starts calling; bluffing the Jack turns negative; Player 1's regret flips; the mix oscillates, and the average settles at the known solution — bluff the Jack at most one time in three, bet the King three times as often as you bluff the Jack, never open-bet the Queen. Run it yourself: the Neller and Lanctot tutorial and OpenSpiel's Kuhn example are a few dozen lines, and your gut feeling about bluffing frequency will never be the same.
The algorithm's family tree in one line each: CFR (2007) — the original; CFR+ (2014) — a regret update that converges much faster, the engine behind Cepheus; MCCFR — sample parts of the tree instead of walking all of it; Deep CFR (2019) — a neural network approximates the regret table so nothing has to be stored per information set; ReBeL (2020) — self-play plus search on «public belief states», the recipe behind the strongest research systems. «Solved» in this world means exploitability below what any opponent could realise in a lifetime — Cepheus's 0.986 mbb/g.
Beyond Equilibrium: Opponent Modelling, Adaptation and the Multiway Problem
Equilibrium is a defensive concept: it guarantees you don't lose, not that you win much. Money comes from opponents' mistakes, and to collect it a bot has to leave the table on purpose. So if you ask how does poker AI work once the blueprint is loaded, the answer is an opponent model. The Alberta group's Loki framed this in the 1990s as a default strategy plus corrections; a 2026 hybrid engine does the same with better defaults.
What the opponent model collects is the familiar stat line: VPIP (how often they put money in preflop), PFR (how often they raise), aggression factor, 3-bet frequency, fold to continuation bet, later street-by-street tendencies. Against a 45/8 player the exploit layer widens value bets and cuts bluffs; against a 24/19 regular it tightens and picks thinner value. How much the model trusts itself depends on sample size — an industry rule of thumb, not a law:
| Hands seen | What the model knows | What it changes |
|---|---|---|
| under 20 | nothing reliable | plays close to the blueprint |
| 20–100 | a loose/tight, passive/aggressive sketch | preflop ranges, c-bet frequency |
| 100–500 | per-street tendencies | bet sizing, bluff-catch thresholds |
| 500+ | a full profile with confidence | exploits in most spots; re-checks for change |
The price of exploiting is becoming exploitable. The moment the bot deviates from equilibrium against a profile, a player who has modelled that deviation can counter it. The adaptation curve runs both ways — the fastest way to lose with a bot is to let it exploit a regular who has already worked it out. It is also why bot-versus-bot tables are a wash: two engines hunting each other's deviations grind each other down to the rake.
The clearest public evidence that the model matters is an independent six-bot test on PPPoker NL4 tables published in October 2026: 26,395 hands, November 27 to December 15, 2025. As reported:
| Engine class | Result (bb/100, reported) | Note |
|---|---|---|
| Two AI engines (hybrid, adaptive) | +29.2, interval +17 to +43 | adapted to the table |
| Three rule-based bots | −24.3, interval −34 to −17 | static profiles; removed by PPPoker's anti-cheat after ~10,000 hands |
| One scripted commercial bot | −147 | — |
| Rake at that table | ~5.5 bb/100 | the house's share of everyone's edge |
Vendors are anonymous in that write-up and I won't guess them; the point is the shape. The scripts lost not because their ranges were wrong but because they never changed — predictable sizings, no adaptation, and a signature the anti-cheat eventually recognised.
The multiway problem. Nash equilibrium guarantees apply to two-player zero-sum games. With six players there is no guarantee that an equilibrium is computable, or that playing one is even good — several equilibria can coexist, and following yours while others follow theirs can lose. Pluribus (2019) didn't try: it built a blueprint by self-play and searched a few moves ahead in real time. That is why 6-max engines in 2026 are hybrids — a GTO-style base with an exploitative layer on top, the split our GTO bot vs exploitative bot article unpacks.
Does a Bot Bluff? What «Feeling» Looks Like in a Machine
Nobody programs a bluff. A bluff is what a mixed strategy looks like when the hand is weak: at that information set the table says «bet 30%», and three times in ten the random number lands on bet. The Kuhn walkthrough shows the mechanism — the Jack starts betting because folding Queens make it profitable, and stops when they stop folding.
A 2025 Leduc hold'em study (arXiv 2509.04125) makes the point from the other direction: over 100,000 simulated hands, a CFR agent and a deep Q-network trained by reinforcement learning both reached bluff success rates of roughly 34–39% — by different routes. CFR bluffed evenly, with medium-strength hands, on a steady rhythm; the DQN bluffed in clusters, often right after losing a pot — it looks like tilt and is really a quirk of how it learned. Same frequency, different texture.
Two ways to the same bluff rate. CFR: bluff frequency is a property of the equilibrium, spread evenly. DQN: bluff frequency emerges from reward, arriving in bursts. A production engine is the first kind; the human-like delays and the occasional «slow decision» are added on top by the clicker, not by the brain. A bot bluffs exactly as often as the table says — the one thing it never does is bluff because it's annoyed.
One Spot, Two Brains: Script Bot vs AI Engine
Same hand, same board, opposite decision — the only thing that changed is who's betting. Two worked spots, with our own numbers.
Spot 1 — AKo on the button, folded to you, 100bb. A script bot carries a rule: «top 10% of hands → raise 3bb». An AI engine evaluates three branches — fold (0 by definition), limp, raise — against the blinds' responses. Both end up raising; the difference is the reason. The script raises because AK is on a list; the engine raises because, against the blinds' continuing ranges, raising has the highest EV and limping leaves money on the table (illustrative: raise ≈ +1.0bb, limp ≈ +0.3bb, fold 0). Change the stacks to 15bb and the engine's answer becomes an open-jam while the script still clicks 3bb — because the stack is part of the state.
Spot 2 — turn, you hold top pair, the pot is $100, the opponent bets $75. The script sees «top pair, bet under pot → call». The engine runs one line of arithmetic:
EV(call) = p(bluff) × (pot + bet) − p(value) × bet, where «value» means hands that beat top pair.
| Opponent | Betting range (model) | EV of calling $75 | Engine | Script |
|---|---|---|---|---|
| Nit, 18/14, bets the turn with 85% value / 15% bluffs | p(value) 0.85, p(bluff) 0.15 | 0.15 × 175 − 0.85 × 75 = −$37.50 | fold | call |
| LAG, 42/33, bets the turn with 45% value / 55% bluffs | p(value) 0.45, p(bluff) 0.55 | 0.55 × 175 − 0.45 × 75 = +$62.50 | call (or raise) | call |
The formula is deliberately simple — it ignores your outs when behind and the river action — and the gap is still $100 between two players betting the same amount on the same card. A rule can't see that gap because its input is the hand; the engine's input is the information set, which includes who is in it.
What a Human Can Borrow From the Machine
You can't run CFR in your head, but the habits of poker AI strategy transfer:
- Think in information sets, not hands. «Top pair» is not a decision; «top pair, this board, this opponent, this history» is.
- Mix by frequency, not by mood. If a spot is a 60/40, pick a randomiser — the second hand of your watch, the suit of your top card — and follow it.
- Grade the decision, not the result. Write down the EV reasoning before the river card; review that, not the outcome.
- Count the sample. Nothing about a bot, a player or your own game is proven under tens of thousands of hands.
- Model opponents from stats, not vibes. VPIP, PFR, aggression — then adjust in the direction the numbers point, and expect to be adjusted back.
- Stop «reading» bots. They have no tells to read; they have frequencies. The way to see those frequencies is the next paragraph.
The most honest window into an engine's brain is an assistant (tips) mode: before you click, the engine shows its recommended action for the exact spot. Run it beside a solver for an evening in standard spots and you will see where it agrees, where it exploits, where it hedges. If you want the theory first and the software never, Kuhn and Leduc in OpenSpiel and the Neller and Lanctot tutorial are free.
Frequently Asked Questions
How do poker bots make decisions?
By looking up the current information set — cards, board, pot, stacks, action history — in a strategy table that maps situations to action frequencies, then drawing an action at random against those frequencies. Modern engines re-solve the current street live and shift frequencies with an opponent model. The seeing-and-clicking part is in our pillar article.
What is a mixed strategy in poker and why do bots randomize?
A mixed strategy plays several actions at set probabilities in the same spot — bet 60%, check 40% — instead of always one. It exists because a pure strategy is predictable and therefore exploitable. Bots randomize with a random number generator against the frequencies in their table; the randomness is exact, not moody, and small deviations from the ideal mix cost very little EV.
What is counterfactual regret minimization (CFR)?
CFR is the self-play algorithm that fills a poker bot's strategy table. Two copies of the strategy play each other; at every decision each records how much better each alternative would have done (its regret) and next time plays actions in proportion to positive regret. The averaged strategy converges to a Nash equilibrium. CFR+ solved heads-up limit hold'em to 0.986 mbb/g exploitability.
Is a poker bot just a lookup table?
Mostly, and that's not an insult. A strategy is a table from information sets to action frequencies. What makes modern bots more than a table is how it is built (abstraction, CFR), that parts of it are recomputed live (subgame re-solving), and that an opponent model nudges the frequencies. John's note: every bot I've opened is a table plus a rule for leaving it.
Can poker bots bluff?
Yes, and nobody programs it. A bluff is the betting share of a mixed strategy with a weak hand: if the table says «bet 30%», the bot bets three times in ten. In Leduc hold'em research, CFR and reinforcement-learning agents both converged on bluff success rates near 34–39% through different routes. A bot bluffs at the frequency the solution prescribes, never out of frustration.
Can a poker bot be exploited?
Yes, in two ways. Abstraction leaves seams — unusual bet sizes get mapped to the nearest branch and misread. And any exploit the bot makes against your profile is a deviation from equilibrium you can counter if you've modelled it. Rule-based scripts are the easiest targets: static sizings, no adaptation, as the six-bot experiment on PPPoker showed. John's note: the adaptation curve runs both ways.
What's the difference between EV and equity?
Equity is your share of the pot if the remaining cards were dealt now — a 60% hand owns $120 of a $200 pot. Expected value is the average result of a decision over everything that can still happen, including folds and future bets. A bot uses equity as an input and EV as the score; neither is the outcome of the hand you happen to be looking at.
How many hands does a bot need to adapt to an opponent?
As an industry rule of thumb: under 20 hands it stays near its blueprint; 20–100 hands gives a loose/tight sketch that shifts preflop ranges; 100–500 hands supports per-street exploits; past 500 the model is confident and re-checks for changes. Exact thresholds differ by engine and nobody with a reason to know publishes them.
Sources
- Sonawane, Chheda. Survey of poker AI: abstraction, CFR+, game sizes. arXiv 2401.06168, 2024
- Zinkevich et al. Regret Minimization in Games with Incomplete Information (CFR). NeurIPS 2007 / Alberta TR07-14
- Neller, Lanctot. An Introduction to Counterfactual Regret Minimization (Kuhn poker), 2013
- Bowling et al. Heads-up limit hold'em poker is solved (Cepheus). Science, 2015
- Moravčík et al. DeepStack: continual re-solving. Science, 2017
- Brown, Sandholm. Libratus: blueprint and nested subgame solving. Science, 2017
- Brown, Sandholm. Pluribus: superhuman multiplayer poker. Science, 2019
- CFR vs deep Q-network bluffing behaviour in Leduc hold'em. arXiv 2509.04125, 2025
- OpenSpiel: Kuhn and Leduc poker environments (GitHub)

