Skip to content

Big Two · Dai Di · Deuces

Play Big Two against a bot that shows its work.

Most card games just beat you. This one tells you why. Turn on the advisor and every legal move in your hand is ranked by how often it wins, what it's worth, and what can still beat it — so a game you lose is a game you learn something from.

Free · 2, 3 or 4 players · scored across deals to 100

to answer your move
3 ms

median in-browser, 14 ms at the 95th percentile

hands of self-play per opponent
30 M+

32.7 M for the 4-player network, 35.5 M for the 3-player one

legal moves ranked
All

win probability, expected score, and the reasoning

best 3-player deal-win
61.3%

against the odds bot, where an even table is 33.3%

What you get

An opponent worth playing, and a second opinion while you do

A real game

Full Big Two for 2, 3 or 4 players, scored across deals to 100 points. The awkward rules are all in: the A-2-3-4-5 straight ranks lowest, suits break ties, the 3♦ opens the first deal, two players draw from a pile when they pass, and three players set one card aside face-up.

Start a game

An advisor that explains

Open the panel mid-game and every move you could make is listed with its win rate, its expected points and how many turns you'd have left. It names the cards that still beat you — and when nothing can, it says so outright instead of guessing.

Analyse a position

The rules, settled

Put two combinations side by side and it tells you which one wins and which rule decided it — the arguments people actually have, like whether A-2-3-4-5 is the top straight or the bottom one, and which suit takes a tied flush.

Compare two hands

Under the hood

Two engines that disagree, which is the interesting part

You choose who you sit down against. One reasons about the cards; the other has a feel for them. They pick different moves often enough that watching them argue is half the fun.

The odds bot

calculates

It works out which cards are still unseen, then asks what they could do to you. For a single card the answer is exact — a closed-form probability over the remaining deck, not a guess — and it can sometimes prove a play is unbeatable, or that your whole hand can be run out without ever losing the lead. Everything else it settles by playing the position out thousands of times.

This is the engine behind the advisor, which is why the advisor can show you a probability rather than an opinion.

The neural bot

30 M+ hands of self-play

A network trained the way DouZero learned Dou Dizhu: play yourself millions of times, remember what each position turned out to be worth, and learn to predict it. At the table it calculates nothing — it looks at every legal move at once and picks the one that feels best, in about 3 ms.

Its published win rates come from evaluations against a deliberately cheap version of the odds bot, so read them as training progress rather than a claim that it dominates.

Why two players is different

At a two-player table the neural option is switched off and you play the odds bot instead. The network was trained for 3–4 players, and heads-up Big Two is a different game: the other 26 cards form a draw pile, passing costs you a card, and the loser doesn't go negative. The 2-player network that exists loses to the odds bot, so it isn't shipped — and the option is greyed out with a reason rather than quietly swapped behind your back.

How it learned

Nobody taught it Big Two. It played 30 million deals against itself.

There is no book of good Big Two moves to copy, so the network was never shown one. It was made to play itself, told only who won and by how much, and left to work out the rest — the same recipe DouZero used for Dou Dizhu, called Deep Monte-Carlo. Two runs, one for the 3-player table and one for the 4-player table, 6 hours each on a single machine.

  1. 01

    Play a few hundred deals

    Each round it deals 512 fresh games and plays them out. Its opponents are its own earlier selves — a pool of 6 past versions — so it can't win by exploiting one fixed rival. One move in 10 is picked at random, which is what stops it settling into a rut and never trying anything else.

  2. 02

    Wait for the score

    Nothing is judged while the deal is running. When it ends, every move made along the way is labelled with what the deal was actually worth to the player who made it — cards left over, doubled and tripled as the rules say. No guessing at the value of a position from another guess: the label is the real result.

  3. 03

    Learn to see it coming

    Those labelled moves go into a buffer of the last 500,000, and the network is trained to predict the score from the position and the move alone. That is the whole trick — at the table it runs no simulations. It scores every legal move at once and plays the highest.

Did it get better?

Every 10,000 rounds the run stopped and played 800 deals in seat 1 against a cheap version of the odds bot. Above the dashed line it is winning more than its share of the table.

  • 3-player run
  • 4-player run
  • even table

training rounds

Show the numbers as a table
Round3-player run4-player run
10,00051.9%38.2%
20,00056.6%42.8%
30,00056%43%
40,00056.9%39.6%
50,00057.1%43.9%
60,00059%43.5%
70,00057%44.6%
80,00061.3%47.1%
90,00058.1%43.6%
100,00058.2%44.8%
110,00058.1%44.4%

The error goes up, and that is fine

Median training error per 700 rounds; the band is the best and worst in that stretch. Every point is from the 3-player run's own per-round log.

training rounds

Why up is not broken. It is not fitting a fixed answer sheet. As it improves, its opponents improve with it and the deals get sharper, so the thing it is trying to predict keeps getting harder. Error climbing from 0.047 to 0.155 while the win rate climbs too is the shape a healthy run of this kind has; what would worry you is error falling while the win rate flattens.

What was on the machine

Both runs used the same network and the same settings; only the table size changed.

Network
mlp (512, 512, 256)
Weights
544,769
Input to the network
288 numbers — 225 for the table, 63 for the move
Trained against
mean squared error against the deal's real score
Deals per round
512
Opponents
6 earlier copies of itself
Random moves
10% of the time
Replay buffer
500,000
Deals per evaluation
800, in seat 1 against the odds bot

The two runs

Measure3 players4 players
Deals played35.5 M32.7 M
Wall clock6 h6 h
Deals per second1,7561,611
Best deal-win61.3%47.1%
An even table would be33.3%25%
Error at the end0.15480.2135

One caveat, stated rather than hidden: only the 3-player run's per-round log survived, so the error chart is that run alone. The 4-player figures are the eleven evaluations its console log printed. Both runs' logs are in the repository if you want to read them.

Why the numbers are worth trusting

The browser engine is checked against the original, move for move

An advisor is only useful if it is right. All of this began as a Python project, and none of that could ship to a browser — so it was rewritten in TypeScript and WebAssembly, then held against the original: the Python code dumps a record of what it actually does, and the browser engine has to reproduce it.

12 games, replayed exactly

Recorded games for 2, 3 and 4 players — including one run 102 deals to the 100-point finish — play out identically in the browser.

1.43 M turns without a slip

300 complete games checked on every single turn: cards conserved, moves legal, scoring correct. No illegal state was ever reached.

Exact where it matters

The single-card beat probability uses exact integer arithmetic and matches the original to twelve decimal places.

The same rules, verified

154 tests cover the rules engine, including the corners people argue about — the low-ace straight, flush tiebreaks and same-size-only beats.

The same network

Every weight round-trips bit for bit, and the move it picks in the browser is the move PyTorch picks.

The same C engine

The rollout kernel is the original C source compiled to WebAssembly, so the bot in your tab runs the code that was benchmarked, not a re-interpretation.

All of it is open source — read the engine, the training pipeline and the test suite

Questions

The short answers

What is Big Two?
Big Two — also called Dai Di, Choh Dai Di or Deuces — is a card-shedding game for 2–4 players. You play singles, pairs, triples or 5-card poker hands, each of which must beat the one before it, and the first player to empty their hand wins the deal. Ranks run 3 low to 2 high, and suits break ties in the order diamonds, clubs, hearts, spades.
Is it free?
Yes — there is nothing to buy, nothing to install and no ads. Open the page and deal.
Can several people play on one device?
Yes. Set as many seats to a person as you like and the table becomes pass-and-play: each hand stays face-down until whoever's turn it is taps to reveal it, then hides again when they have played.
How does the advisor decide what to recommend?
The odds engine works out the unseen cards from your hand and the discard pile, computes how likely each candidate play is to be beaten, then plays the position out thousands of times against imaginary opponent hands. For singles the beat probability is exact — a closed-form calculation rather than a sample — and it can sometimes prove that a play cannot be beaten at all.
How strong is the neural opponent?
It is a DouZero-style value network trained by self-play across 32.7 million deals for the 4-player table and 35.5 million for the 3-player one. Its reported win rates come from evaluations against a deliberately cheap version of the odds bot, so treat them as a progress measure rather than a claim of dominance.
Why can't I pick the neural bot at two players?
The network is trained for 3–4 players, and two-player Big Two is a different game: the other 26 cards form a draw pile, passing costs you a card, and the loser doesn't go negative. The 2-player checkpoint that exists loses to the odds engine, so it isn't shipped and the option is switched off rather than quietly swapped.
Can I play Big Two on my phone?
Yes. The board, the advisor and the card picker all adapt down to phone widths, and the game is fully playable by touch or keyboard.

Deal yourself in

Pick a table size and an opponent. It takes about ten seconds, and you can leave the advisor open the whole time.

Play now