How Ridotto solves poker

After the flop, Ridotto grades your play against answers we worked out ourselves. Our own solver played through every flop in the heads-up pots the app deals, 26,325 flop solves in all, each within 0.3% of the pot of a perfect strategy. Before the flop, the app plays by reference charts, not a solver.

Book, also book or off book. That's all I'll tell you after the flop. Getting there took some arithmetic.

What is a poker solver?

A solver is a program that works out how to play a poker spot so that no opponent can take advantage of it. That kind of play is called GTO, short for game theory optimal. What GTO means has the whole idea.

You give the solver a spot: the board, the hands each player could hold, the pot, the stacks and the bets allowed. It plays the spot against itself, over and over. After every pass, each side leans a little toward the plays that would have done better and away from the ones that cost it. Pass by pass, the two strategies settle, until neither side can gain much by changing. The method is called counterfactual regret minimization, CFR for short. Ours runs a discounted version that settles faster.

A solver answers the game you give it, no more. Change the hands or the bet sizes and the answer changes. So the first job is choosing the game.

What did we solve?

The game the app deals: $1/$3 no-limit hold'em with $300 stacks, 100 big blinds, and two players left by the flop. A raise is to $12 and a reraise, called a three-bet, to $36. The flop solves include the rake, the house's cut of the pot, taken the way the table takes it.

  • Pot types. 15 of them: 7 single-raised pots, where one player raised and one called, and 8 three-bet pots, where the raise was raised again and called.
  • Hands. Which hands each player brings to the flop comes from the app's preflop charts. Those are reference ranges drawn from published beginner material, not solved. The solving starts at the flop.
  • Bets. On the flop, 33% or 67% of the pot. On the turn, 67%. On the river, 67% or all in. At most one raise a street. Both players get the same menu.
  • Every flop. There are 22,100 possible flops, but most are the same flop with the suits swapped. That leaves 1,755 that play differently, and we solved every one of them for every pot type: 26,325 solves.
  • Turns and rivers. 8,621 turn spots and 7,875 river spots, after the most common betting lines. These were solved on boards like yours, grouped by the flop's texture and the kind of card that came, rather than on your exact cards. River answers cover the 7 single-raised pots. Turns and rivers are solved without the rake for now.

What doesn't it cover?

Anything outside that game gets no grade, rather than a made-up one:

  • Pots with three or more players at the flop.
  • Limped pots, and pots with a four-bet.
  • Turns and rivers after a raise.
  • Facing an all-in on the river.

Where the solver's own play almost never goes, the coach doesn't grade either. A strategy is only tested where it gets played. Before the flop, the coach grades against the starting hands chart, which is a reference chart, not a solve.

One flop, read out

Here's a single record from the app, decoded straight from the file it ships. The button raised, the big blind called, and the flop came king, seven, two in three suits. The pot is $25. The big blind checks here 99% of the time, and now the button decides.

How often the button checks or bets each kind of hand after the big blind checks
Button hasCheckBet $8Bet $17
Three of a kind0%4.5%95.5%
Two pair0%6.5%93.5%
An overpair0%1%99%
Top pair35.5%3.5%61%
Second pair40.5%5%54.5%
A weaker pair67.5%3.5%29%
Nothing47%3%50%

Say you have top pair. The book is betting $17, the play the solver makes most with it (61%). Checking (35.5%) is also book. Betting $8 (3.5%) is off book. It gives up 0.9% of the pot against the best play.

Each row is a kind of hand, and each number is how often the solver makes that play with it. The book is in bold. Strong hands bet big nearly every time. With nothing at all, the button bets big 50% of the time and checks 47%. Mixing like that keeps the big blind from reading the bet. This flop was solved to 0.23% of the pot.

How does Ridotto grade a hand?

The app sorts your hand into one of 14 kinds, top pair or a flush draw or nothing at all, and looks up how the solver plays that kind of hand on your flop, at your point in the betting. Then it grades what you did.

  • Book. The play the solver makes most often.
  • Also book. Any other play the solver makes at least 20% of the time, or one that costs no more than 0.3% of the pot against the best play. That's the solve's own margin, so the grade never splits hairs finer than the math.
  • Off book. Everything else. It means the solver found something better.

How accurate is it?

Every solve ran until its strategy was exploitable by no more than 0.3% of the pot. Exploitable means this: if a perfect opponent knew exactly how the strategy plays and chose the best possible answer to it, that's the most they could gain. In a $25 pot, 7.5 cents.

All 26,325 flop solves finished at or under that line, 0.28% on average. The grade is coarser on purpose: a play within 0.3% of the best counts as book too.

How do we know it's right?

A solver is easy to get quietly wrong, so ours had to get known answers right before it solved anything for the app.

  • Kuhn poker, a three-card toy game whose exact answer was worked out by hand. The solver finds it.
  • Leduc hold'em, a small poker game researchers use as a test. The solver's value for the first player matches the published one.
  • The textbook river. One player has the best hand or nothing, the other can only catch a bluff. The math says exactly how often to bluff and how often to call at each bet size, and the solver lands on it.
  • A published benchmark. A three-bet pot on queen, jack, two with both ranges written out, its answer verified with PioSOLVER, the best-known commercial solver. Our first player's share of the equity is 0.553471 against PioSOLVER's 0.55347, and the spot's value 105.106 chips against 105.11.
  • The hand evaluator, the part that says which hand is best, checked on every one of the 133,784,560 seven-card hands.

Then the checks on the real work. Before the full run, the solver had to reproduce its earlier answers on a fixed set of spots. The graphics-card solver and the processor solver agree on the same spots. 1,860 flops were also solved in an earlier batch without the rake. With it, the book's play comes out different for 5.1% of the range, which is the rake's effect and the two solves' own differences together. Before anything ships, a verifier decodes every file the app reads and checks it against the solves.

What did it take?

44,681 solves in all, flops, turns and rivers, on one desktop PC: an i9-13900K processor and an RTX 4090 graphics card. The graphics card took 23,160 of the flops and the processor 3,165. Added up, the solves ran about 74 hours.

Common questions

Is Ridotto's poker coach GTO?

After the flop, in heads-up pots, yes, for the game on this page: the coach grades against solved strategies within 0.3% of the pot of GTO. Before the flop it uses reference charts, which are not solved.

Does the app solve hands while you play?

No. The solving was done ahead of time, and the answers ship inside the app. A grade is a lookup, so it's there the moment you act.

Why doesn't Ridotto grade multiway pots?

With three or more players, the guarantee behind GTO goes away and the game gets too big to solve well. The coach gives no grade rather than a made-up one.

What does within 0.3% of the pot mean?

It's the most a perfect opponent could gain against the strategy, even knowing exactly how it plays. In a $25 pot, that's 7.5 cents.

Which solver does Ridotto use?

Its own, written for the app and checked against a published benchmark verified with PioSOLVER and the known answers of smaller poker games.

The math is done. The hands are yours to play.

Ridotto is a poker, blackjack and roulette trainer for iPhone and iPad. Sit down at a $1/$3 hold'em table with play money, and a retired dealer reads every hand with you.