borel
A few of my friends at Stanford told me I couldn't build a poker bot that beats them. I took that personally. Borel plays no-limit hold'em at tables of up to nine, and it does not care about anyone's feelings.
I built a poker engine from exact game solvers through learned value functions and nine-player self-play. Borel targets deep-stack endgames, where efficient card-aware computation and accurate leaf values determine what can be solved locally.
- role
- Locally runnable no-limit Texas hold'em engine, heads-up to nine seats, with exact solvers and learned values.
- language
- Rust with zero third-party dependencies; Python and PyTorch for training; CUDA and Metal for the heavy parts.
- scale
- 97 ledgered claims, 28.8 million hand plays in one nine-seat league, 386 million info sets per blueprint.
- status
- Ongoing. Study tool only, never for real-money play.
- source
- Private repository.
- paper
- Read it below · Web version
Exact endgame computation
The Rust core reproduces Kuhn poker’s game value of −1/18 and the complete 133,784,560-hand evaluator frequency table. A blocker-aware river solver reaches less than 0.25% of the pot in exploitability on the tested spot across stack-to-pot ratios from 1 to 100, in 0.03–7.2 seconds on a laptop.
A three-player terminal kernel uses rank-filtered inclusion–exclusion to avoid enumerating joint deals. At 128 hands per player it runs 54–121 times faster than the exhaustive reference.
Learning turn values
Across seven documented architectures, mean value error falls from 10.82% of the pot for an MLP to 1.316% for a position-aware set transformer. The network is trained on 8,000 solved positions and evaluated separately on deep-stack states.
From local accuracy to complete play
The resulting agent records 2.95% exploitability on 100 held-out flop states against a 2% target. A later card-aware network lowers it to 1.18% on the same diagnostic set; a fresh confirmation set is needed for a new agent claim. Slumbot matches remain too uncertain to establish positive performance.
At nine seats, successive compute doublings gain +0.164, +0.145 and +0.058 big blinds per hand against the preceding blueprint. A broader opponent league gives mixed results, motivating experiments on abstraction quality and opponent diversity.
The strongest results are the deep-stack solvers and efficient card-aware kernels.
Configuration, seeds, source checksums and measurements are recorded in a 97-entry ledger. Borel is a research and study tool.