How poker solvers work, shown on a small solved game

A poker solver is a program that finds a strategy for a simplified hand that an opponent cannot beat by adjusting. You give it each player's range, the board, the stacks and the bet sizes allowed. It plays the hand against itself many times, shifting each choice toward whatever would have done better, until no choice can be improved. It then reports how often each hand takes each action and what each action is worth.

  • 57Betting lines in one street, 2 sizes and 2 raises
  • 2,162Turn and river pairs after the flop
  • 50%Toy game: bluff share after many rounds

What is a poker solver?

A solver is software that computes an equilibrium for a poker spot. An equilibrium, as the guide to GTO explains, is a pair of strategies where neither player gains by changing alone. The usual method is called counterfactual regret minimization. In each round the program asks, for every decision, how much better each action would have done than the mix it is using now. That gap is the regret. It then moves its mix toward the actions with positive regret. Averaged over many rounds, the strategies of both players settle at an equilibrium in a two-player game.

Solvers differ in speed and in how much of the game they keep. Some are free and some are paid. None of them is needed to learn the ideas, and a small game is enough to see everything they do. The rest of this page works through one.

What inputs does it need: ranges, bet sizes and a game tree?

Three inputs define the game. First, a range for each player at the start of the spot, since the solver needs to know which hands can be there. Second, the board, the pot and the effective stacks. Third, the bet sizes each player may use at each point, which sets the game tree: every sequence of check, bet, raise, call and fold the program will consider. Each extra size multiplies the tree.

Betting lines in one street, with up to two raises
Bet sizes allowedBetting lines in one street
113
257
3157
4337

The table covers one street. A hand has up to three streets, and the solver must handle every turn and river card as well, 2,162 pairs after the flop. That is why solvers limit the sizes and raises they keep.

Here is the small game used below. The pot is 1 unit and one bet of 1 unit is allowed. The bettor holds the best possible hand half the time and the worst possible hand half the time. The caller holds a hand that beats the worst and loses to the best. The bettor may check or bet, and the caller may call or fold after a bet. The tree has three decisions in all, and results are measured in chips, relative to owning half the pot.

What do frequencies and EV in the output mean?

A frequency is the share of the time a hand takes an action. EV is the average result of that action, in chips. Where a hand mixes two actions, the solver is saying the actions are worth the same, because otherwise it would drop the worse one. The table gives the solution of the small game, found by the algebra of indifference and confirmed by the program below.

The solved small game: what each hand does and what each action earns
Player and handActionHow oftenEV of the action
Bettor, best handCheck0%0.50
Bettor, best handBet100%1.00
Bettor, worst handCheck50%-0.50
Bettor, worst handBet50%-0.50
Caller, facing a betFold50%-0.50
Caller, facing a betCall50%-0.50

The best hand has one clear action, a bet worth 1.00 against 0.50 for a check. The worst hand mixes, and its check and bet are both worth -0.50. The caller's call and fold are both worth -0.50. Those equal values are the equilibrium. Nobody can gain by changing.

How does a solver nudge a strategy toward equilibrium?

Each player in the program is a plain money-maximizer. It does not know the word equilibrium. Two such agents face one another's current plans, and each keeps adjusting to punish the other until neither can improve. The loop is short: give both sides an even random mix, measure how much each hand regrets not taking each action, shift one side toward the actions it regrets missing, then repeat for the other side. A run may need thousands of rounds or billions, which varies with how large the tree is.

Regret is the value of an action minus the value of the player's current mix at that decision. With a hand that folds, calls and shoves a third of the time each, and action values of 0, 8, 6 big blinds, the current mix is worth 4.7. An action with negative regret stops being played, and the rest are played in proportion to their positive regret. Jumping straight to the best reply can send two players around in circles, because each swings to counter the other, so the update moves part of the way each round.

One regret update for one hand, in big blinds
ActionValueRegret against the current mixShare after the update
Fold0-4.70%
Call83.371%
Shove61.329%

After one round the mix moves from 4.7 to 7.4 big blinds in value. The idea is called counterfactual regret minimization, and in a two-player zero-sum game like heads-up poker the repeated updates are known to approach an equilibrium as the rounds pile up.

How accurate is a solution?

Accuracy is measured by how much a player could win by switching to the best possible reply against the other side's current plan, averaged over both players and written as a share of the starting pot. A small number means little can be exploited, and the number shrinks the longer the program runs. Where you stop is a trade between time and precision, so a rough result can be a poor guide to which of two close actions is better. A tighter target is needed for trees with many close bet sizes, since similar sizes pay almost the same and only a precise solution can tell them apart.

To get the value of any plan, the program lists every ending of the hand, a fold or a showdown, gives each a chance of being reached and a payoff, and sums chance times payoff. That is the easy part. The hard part is the repeated nudging.

Can a solver be made to play a mistake on purpose?

Yes. Holding one player's strategy still at a single decision is called nodelocking. Lock the opponent to always bet the flop, for example, and the other side re-optimizes its response, and both sides also adjust the earlier and later streets to cover the lock. The result is a strategy that expects one specific error and plays perfectly everywhere else, often called minimally exploitative, in contrast to a maximally exploitative plan that assumes the leak holds on every street. Nodelocks give you cause and effect, which is the part of solver study that points toward exploits.

Why are trees simplified, and what is lost?

Real hands have far too many branches to keep them all, so the tree is cut down. Bet sizes are limited to a few, raises are capped, and similar hands are sometimes grouped. The solver finds the best strategy for the simplified game, which is close to the best strategy for the real one but not the same. The cuts lose the most in spots where the real bet size sits between two sizes on the tree.

There is a second approximation: the answer is reached in steps. The table runs the small game from the first round. After a few rounds the mix is far from the answer, and it settles as rounds are added.

Regret matching on the small game, round by round
RoundsBest hand betsWorst hand betsCaller callsBettor result per hand
1095.0%46.7%27.5%0.236
10099.5%53.0%45.2%0.250
1,000100.0%49.2%48.3%0.250
10,000100.0%49.8%50.6%0.250
100,000100.0%50.0%49.8%0.250

After 100,000 rounds the worst hand bets 50.0% of the time, the caller calls 49.8% of the time, and the bettor earns 0.250 per hand. The algebra gives 50%, 50% and 0.250.

How can you study solver output without copying it?

Read the output as a set of questions, not a set of answers. Predict the action and the frequency before you look, then compare. When you miss, find the reason in the price, the range or the board. For the small game the reason is arithmetic: the bluff share follows the bet size, and the caller's defend rate follows the pot odds. A pattern you can explain with a ratio is worth more than a number you can only recite.

Look for features that carry across spots. Which player holds more strong hands on this board? Which actions are common and which are rare? Does a bigger size mix more bluffs? Then vary the input, such as a wider range or a different stack, and watch what moves. That teaches the shape of the answer, and the shape is what you use at the table.

How do you lock an opponent's mistake into a solver?

A solver's equilibrium assumes both sides play it, but you can fix one side's strategy to what you have seen and let the solver find the best reply. The workflow has five steps. Choose a hand with a real decision on the turn or the river, because the later streets are smaller trees that solve faster. Enter the ranges the action implies, adjusted by your notes on that opponent. Solve to get the baseline. Then lock the opponent's choice, for example by setting how often they check or bluff, and solve again. Last, compare your hand's line in the two outputs.

The lock matters most where it flips a decision. Take a bet of 75 into a pot of 100: a call needs 30% of the bettor's range to be bluffs to break even, and the table shows what a call is worth as the real bluff share moves.

Result of calling a bet of 75 into a pot of 100, per call, by the bluff share of the bettor's range
Bluff share of the betting rangeAverage result of a call, in chipsDecision
10%-50.0Fold
20%-25.0Fold
30%0.0Indifferent
40%25.0Call
50%50.0Call

At equilibrium the bettor has exactly 30% bluffs and the call is worth nothing. Lock the bettor to half of that and every bluff-catcher turns into a fold; lock them to a higher share and the same hands become profitable calls. Two cautions apply. A lock is only as good as the read behind it, so the sample-size table in the guide on exploitative play applies here too. And a lock changes the answer only for the spot you entered, so a pattern worth keeping is the direction of the shift, such as betting thinner against a player who calls too much.

Where do solver lines fail at a live table?

Solver lines assume things that live games break. The opponent is assumed to play the equilibrium, with the ranges the solver was given. Live opponents hold different ranges and make different mistakes. The game is assumed to be two players, but live pots are often multiway, where no single strategy carries the guarantee. Rake, straddles and antes change the prices. And the bet sizes are assumed to be on the tree, while live players bet a wide spread of sizes.

Take sizes. If the tree holds a bet of a third of the pot and a bet of three quarters, the defend rates are 75% and 57%. An opponent who bets half the pot is between them, and the defend rate you need is 67%. The answer for an off-tree size lies between its neighbors, and you work it out from the price. When the opponent's play is plainly different from the equilibrium, use the output as the baseline and move away from it toward the mistake you see.

Questions

What is a poker solver?
A solver is a program that computes an equilibrium strategy for a simplified poker spot. You give it ranges, a board, stacks and bet sizes. It reports how often each hand takes each action and what each action is worth, for a strategy the opponent cannot beat by adjusting.
How does a solver find its answer?
It plays the spot against itself many times. In each round it compares every action with its current mix, and it shifts toward actions that would have done better. The average of its strategies settles at an equilibrium. In the small game above, 100,000 rounds reach 50% bluffs.
What does the EV in solver output mean?
EV is the average result of an action, in chips. When a hand mixes two actions, both have the same EV, since the solver would drop the worse one. In the small game, the worst hand's check and bet are both worth -0.50.
Can you use a solver strategy at a live table?
Use it as a baseline, not a script. Live opponents hold different ranges, bet sizes off the tree and play multiway pots, where the guarantee does not hold. Learn the reasons behind the output, then adjust to the mistakes you see.

Where can you run these numbers?

Every figure on this page can be reproduced in a free calculator or read off a data page. Put your own hand or your own bet size in and compare.

How were these numbers computed?

The small game is solved by regret matching, run here for each checkpoint from the first round. Results are chips relative to owning half the starting pot. Line counts come from a recursion over bets and raises. Defend rates are the pot divided by the pot plus the bet. The result of a call against a given bluff share is that share times the pot plus the bet, minus the rest times the bet.

Source: GeorgeLiPoker's own arithmetic and enumeration, from the poker math library behind the free calculators.