Card game and research
Red/Black
A bluffing card game I invented, a live multiplayer site to play it, and four research papers on how close a computer can get to playing it perfectly.
- The game
- One ordinary deck, only color counts
- Players
- 2 to 10
- Size
- 2.4×10³³ information sets, counted exactly
- Papers
- 4
- Status
- Live at playredblack.com
How it plays
Red/Black is for 2 to 10 players and uses an ordinary 52-card deck where only color matters: 26 red, 26 black. Everyone gets five cards, face down, and sees only their own.
Each round you secretly order your hand, then bid on how many cards of one color are in play across every hand: "3 red". The next player either raises the count or calls the bid a lie.
A challenge means the bidder has to prove it, flipping cards from the top of any player's hand, in the order that player chose. Lose a challenge and you discard a card. The last player with cards wins.
The bluff lives in the ordering: you decide which of your cards someone will flip first.
Solving it
The game is far too big to solve directly, so every route to an answer goes through an abstraction, and an abstraction can quietly cost you exactly what you're trying to measure. The goal was a number for how far my best strategy is from optimal, with error bars.
I counted all 2.4×10³³ information sets exactly, which is 10¹⁸ times more than heads-up limit hold'em.
I computed a near-optimal strategy with CFR+, the algorithm behind poker solvers. Symmetry reductions and a Numba-compiled kernel cut the solve from 12 hours on a 28-core server to 2 on a laptop.
I also built a hybrid solver, quantal-response values with CFR+ policies, that a best-response exploit bot could no longer beat. Over 10,000 paired games that's a significant improvement over plain CFR+ (p<0.0001).
The four papers below write up the whole solve.
The papers
- Decoupled Equilibrium Selection
The main paper: why a solver's values and its playable strategy should come from two different algorithms, and the pruning experiment that went wrong first.
- I. States and Counts
The game, formalized, and an exact count of everything in it. The 10³³ is counted, not estimated.
- II. The Solve and the Meters
Solving the abstracted game exactly, and every measuring tool defined before it's trusted, including the ones that turned out to be blind.
- III. Playing the Real Game
Carrying beliefs across the abstraction's seams, safe re-solving, and why a certified upper bound stays out of reach.
One rule throughout: no number without a script. Every figure in the papers is regenerated by code in the repo.