How Flopscope's numbers are checked: equity, board hits and solver results
Flopscope's engine is checked by a second program that shares no code with it. That program repeats 12 equity spots and 9 solver spots by brute force, and the 2 results have to agree before a version ships. This page lists what is checked, and what isn't.
Why 2 programs
A program that checks itself can repeat its own mistake. So Flopscope has a second program for the checks.
The second program is slow and plain. It deals every board, scores every hand with its own code, and adds up the results. It shares no code with the engine of the app, and it’s written in another language.
When the 2 programs agree on a number, a shared mistake is very unlikely.
Equity
The second program counts 12 spots again, card by card:
- hand against hand before the flop, with shared suits and without
- 3 players
- a flush draw against a set, on the flop and on the turn
- a board that plays for both players
- range vs range on a flop and on a turn
The exact result of the engine has to equal the brute-force count.
The engine’s own self-test adds more:
- It counts all 2,598,960 hands of 5 cards and all 133,784,560 hands of 7 cards by category. The counts equal the known numbers.
- It compares a Monte Carlo run with the exact result. The 2 have to agree within 4 standard errors.
Board hits
The self-test checks single hands on boards where the right group is known. One example: A♥ K♥ on K♦ 7♥ 2♥ is top pair, with a nut flush draw.
A page of this site that shows a board-hit table says how the table was checked. The table on the board hits page was counted again by a separate script, with its own range reader and its own rules. All 24 numbers agree.
Solver results
A solver result is harder to check than a count, because there’s no simple number to compare. So the second program checks what a result must be, whatever the strategy is.
For each of 9 solver spots, it does 4 things:
- The setup. It reads the ranges, the board, the pot, the stack and the rake from the task, and compares them with what the solver printed.
- The tree. It builds the legal actions of each point from the bet size rules, with its own code. The solver’s tree has to hold the same actions.
- The values. It plays the printed strategies hand against hand with its own scoring, and computes the value of each player again.
- The best responses. It computes the best answer to each strategy. That gives the accuracy of the solve a second time.
The values and the best responses of the 2 programs have to agree within 0.002% of the pot.
For 3 of the spots it also checks one point of the tree: how often each action is taken, and the value of each action for each hand.
The self-test has 2 more kinds of check:
- A game with a known answer. A small river game with a known answer has to come out with that answer.
- A tree with no bets. When nobody can bet, the value of a range is the pot times its equity. The solver has to give the same number as the exact equity count, on a flop, a turn and a river.
Tests of the tests
On 2026-11-25 the checks themselves were tested. 31 bugs were planted, one at a time, in a copy of the solver.
The checks of that day caught 24 of the 31. Each of the 7 that got through now has a test of its own.
The same review ran the solver on 1,500 random trees, with 0 illegal actions, and compared it with a separate checker on about 500 random spots.
What the checks don’t cover
- Your own spot. The second program repeats a fixed set of spots. It doesn’t repeat each solve that you run.
- The model. A solver result is the answer for one model: these ranges, these bet sizes, these stacks, this accuracy. No check says that the model fits your game.
- Rare lines. A line that few hands take is less exact than the solve as a whole. The Solver window marks such a point.
- The starter ranges. They are approximate, for study. No solver made them.
- Monte Carlo. A Monte Carlo result has an error, and the app shows it next to the result.
How the pages of this site are made
Each page has to rest on one of 3 things: a number from the engine, a test on a Mac, or a dated fact with a link to its first source.
- A number comes with its ranges, its definition and its method.
- A fact about another product comes from that product’s own page, with the date of the check.
- The date at the top of a page changes only when the page changes.
More about the 3 jobs of the app: the solver, range vs range equity and board hits. The tables of exact numbers are on exact poker numbers.
Method
The counts on this page come from 2 runs on a Mac with an M1 chip, on 2026-11-25: the self-test of the app's command line tool (268 checks, 0 failures, about 3 seconds) and the second program (12 equity spots and 9 solver spots, 0 errors, about 1 minute).