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 24 solver spots by brute force, checks solves with locks and with opponent profiles, and checks 3 saved spots. 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 24 solver spots, it does 4 things:

  1. 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.
  2. 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.
  3. The values. It plays the printed strategies hand against hand with its own scoring, and computes the value of each player again.
  4. 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 14 of the spots it also checks 19 points of the tree, hand by hand: how often the hand gets there, its EV, its equity and its EQR. At a decision it also checks how often each action is taken, and the value of each action.

At 10 points where a card comes, it counts the number of each next card again. And it puts each hand in its class, such as top pair or flush draw, with its own rules, and counts the numbers of each class again. The class rules also run on every hand of 30 boards that the solver spots never reach: boards of one suit, paired boards, a wheel and more.

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.

Node locking and opponent profiles

Since version 1.5 a solve can have locks and opponent profiles. The second program checks them with its own rules.

  • Locks. On 10 spots it makes each lock again from the solve without the locks. Then it checks that each locked hand keeps its lock, and computes the values and the best replies in the game with the locks.
  • Profiles. On 8 spots it computes the bonus of each action again, the real value of each player, the value that each player sees with its bonuses, and the best replies with the bonuses. A small river game with a known answer has to give that answer for each profile.

The self-test adds 176 checks of the locks and 194 checks of the profiles: the slider rule, the text of the command line, the saved spots, and solves with one thread and with many.

Saved spots

Since version 1.3 you can save a solved spot and open it later. A saved spot has to give back the same numbers.

The second program doesn’t read the file itself. It checks what you get, on 3 spots:

  • Open. A spot that is opened has to print the tree that was saved.
  • Continue. A solve that is saved in the middle, opened and run to the end has to print the same tree as a solve in one run.
  • Bad files. The script cuts or changes a file in 7 ways. The app has to refuse each one.

The self-test adds 179 checks of the file: a save that fails in the middle, 2 saves at the same time, and 25 files that aren’t good.

A third check runs the code behind the Solver window, with no window: 441 checks, from a save and an open to a click on a card while a solve runs, and the lock editor and the profile fields.

A spot that you saved with version 1.3 or 1.4 opens in 1.5. Before 1.5 shipped, a check built versions 1.3 and 1.4 from their source code, saved 2 spots with each, and let the old and the new version run on from there. The results were the same. A spot with a lock or a profile needs 1.5: the same check made sure that version 1.4 refuses it, with a message, and shows no wrong numbers.

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.

The list of planted bugs grows with each new part of the solver. Before version 1.3, on 2026-11-27, 127 bugs were planted, one at a time: 104 in the engine and 23 in the code behind the Solver window. The checks caught all 127. Before version 1.4, on 2026-11-30, 389 bugs were planted, one at a time: 272 in the engine and 117 in the code behind the Solver window. The checks caught all 389. Before version 1.5, on 2026-12-02, 804 bugs were planted, one at a time: 577 in the engine and 227 in the code behind the Solver window. The checks caught all 804.

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 runs on a Mac with an M1 chip, on 2026-12-01, with the code of version 1.5: the self-test of the app's command line tool (1,296 checks, 0 failures, about 10 seconds), the second program (12 equity spots, 24 solver spots, 10 lock spots, 13 profile checks, 3 saved spots and the class rules on 30 boards, 0 errors, about 3 minutes), the check of the Solver window code (441 checks, 0 failures) and the upgrade check (117 checks, 0 failures).