YachtDiceLab Yacht Dice AI Research
Archive snapshot
Abstract
YachtDiceLab tested whether planning for an opponent’s response improves play in 12-category Yacht Dice. The v7 models reduced exact endgame decision loss. In full games, v6-P retained the research lead under the registered selection rule. The single-bank I2RO1 candidate beat v4-D in two seed families, while its advantage over v5-R remains unresolved. The free Very Hard setting uses Win DP v4-D. v7 research record · Product handoff
Background
YachtDiceLab uses Nintendo-style scoring with five fair six-sided dice, up to three rolls per turn, twelve scoring categories, and a 35-point upper-section bonus at 63 or more. The DP Expert baseline maximizes expected solo score and has an initial theoretical value of 191.760879752165 points under these rules. In head-to-head play, the best choice can depend on the opponent’s score and remaining categories. YachtDiceLab rules (Korean) · Scorecard (Korean) · DP baseline
Problem Formulation
A decision uses the visible dice, rolls used, both scorecards, and whose turn it is. A player can score an open category or keep dice and reroll the others when a roll remains. For own final score S and opponent score T, the objective is P(S > T) + ½ P(S = T). Under a fixed opponent model, a prospective score s earns the probability that T falls below s plus half the mass at s. Using a score distribution preserves the information needed to weigh a tie and the risk of losing.
Methodology
- Public stateDice, rolls left, and both scorecards
- Legal actionsKeep and reroll or score now
- Future scoresFixed-policy PMF or a mixture over opponent responses
- Stopping valueProbability of a win plus half the probability of a tie
The turn solver enumerates dice multisets and weights reroll outcomes by their exact probabilities. It compares the expected continuation for each legal hold with the value of scoring now. Future score probability mass functions (PMFs) are cached by remaining-category mask and upper subtotal. A PMF is exact for its specified policy and tie-breaking order. A fixed-policy rollout approximates play against an opponent whose decisions react to the scorecard.
For the endgame comparison, each estimator supplies stopping values, and the exact turn solver derives its policy. An interactive expectiminimax solver then evaluates that policy against the same optimal-play reference. Decision regret is the reference optimal turn value minus the value of the estimator’s turn policy, in percentage points per turn. The calculation integrates over possible rolls at each sampled position. PMF and solver methods · Exact regret protocol
Model Evolution
Earlier learning experiments included PPO with self-play and a DP teacher, as well as distributional QR-DQN. The full-game QR-DQN pilot fits 16 quantiles of future terminal credit per action. That learned return distribution serves a different purpose from the exact final-score PMF of a fixed policy. The three-initialization PPO with a DP teacher averaged 50.069% against Win DP v2 (1,200 held-out games per initialization, 95% interval across initializations 49.335–50.804%). This comparison left superiority unresolved. Dabney et al. (2018) · Full-game RL pilots · Multiseed PPO results
- Win DP v2 and v3
- v2 extends the competitive Bellman calculation to the last two categories, assuming DP Expert for the opponent’s remaining play. v3 adds a third category for its own planning and uses a Gaussian opponent-score approximation when the opponent has at least three categories left.
- Win DP v4-D
- The service configuration uses a frozen REINFORCE residual checkpoint and a v3.3-family late-game policy. The harness calls the service’s registered v4-D configuration. The optional v3.3 pack and v3.4 response feature are disabled in this configuration.
- v5-R and v6-P
- v5-R optimizes this turn’s win credit, then rolls out DP Expert score distributions for both players. v6-P lets its future play commit to the best of seven exponential-utility policies with different risk preferences, while forecasting a DP Expert opponent.
- v7 response models
- I1RO solves the opponent’s next turn with the v5-R objective, mixes the outcomes into an opponent final-score PMF, and evaluates its continuation against that mixture. I2RO1 uses one DP Expert bank and also solves its own next turn against the mixture. I2R1 solves that next turn separately for each opponent outcome.
Registered v4-D policy · Benchmark model registry · v6 policy set · I2RO1 algorithm
Experimental Setup
The benchmarks play complete 1:1 games. Each seed is used twice with seats swapped, so each policy goes first once. The engine uses separate per-seat dice streams, reusing the seeded streams across seat swaps and intentionally matched comparisons. Policies receive the public state with seed and RNG fields cleared. The single observation is the average credit of the two games at a seed. A common-opponent contrast takes the difference of those pair averages on the same seeds. Tournament runner · Glasserman and Yao (1992)
Intervals are two-sided paired normal approximations, 95% for the original v2 run and 99% for the later runs shown here. The project’s registered superiority tests use one-sided p-values, with Holm adjustment where specified for the hypothesis family. Sample size and stopping were fixed for the confirmatory runs. Development families such as 9001, 9011, 9101, 9102, and 9107 were used for design or selection. Families 9501/9502, 9511/9512, 9531/9541, 9551–9553, and 9571/9581 are the later test blocks, with 9553 primarily supporting descriptive comparisons. Family 9591 was reserved for finalist selection. Holm (1979) · Registered v7 plans
Benchmark Results
Win credit is (wins + 0.5 × draws) / games. Outright win rate is wins / games. For example, 50,165 outright wins in 100,000 games is 50.165%. The 766 draws raise credit to 50.548%. The first two rows list v2 seed bases. The remaining rows list seed families. Each row has n unique pairs and 2n games.
| Matchup (A vs B) | Seed | Games / pairs | A win credit | Paired CI | Run |
|---|---|---|---|---|---|
| Win DP v2 vs DP Expert | 1,350,000 | 20,000 / 10,000 | 50.630% | 50.406–50.854% (95%) | 44690511514 |
| Win DP v2 vs Win DP v1 | 1,370,000 | 10,000 / 5,000 | 50.435% | 50.132–50.738% (95%) | 44690511514 |
| Win DP v3 vs Win DP v2 | 9501 | 100,000 / 50,000 | 50.175% | 50.049–50.302% (99%) | 45572667620 |
| v4-D vs Win DP v2 | 9501 | 40,000 / 20,000 | 50.179% | 49.938–50.419% (99%) | 45572667620 |
| v5-R vs Win DP v2 | 9501 | 100,000 / 50,000 | 50.626% | 50.372–50.879% (99%) | 45572667620 |
| v5-R vs Win DP v3 | 9501 | 100,000 / 50,000 | 50.479% | 50.229–50.729% (99%) | 45572667620 |
| v5-R vs DP Expert | 9501 | 60,000 / 30,000 | 51.223% | 50.891–51.554% (99%) | 45572667620 |
| v5-R vs v4-D | 9501 | 40,000 / 20,000 | 50.591% | 50.193–50.989% (99%) | 45572667620 |
| v6-P vs v5-R | 9511 | 100,000 / 50,000 | 50.131% | 50.005–50.257% (99%) | 45606191583 |
| v6-P vs v5-R | 9512 | 40,000 / 20,000 | 50.209% | 50.010–50.408% (99%) | 45606203906 |
| v7-I1RO vs v6-P | 9531 | 100,000 / 50,000 | 50.091% | 49.994–50.188% (99%) | 45634704402 |
| v7-I1RO vs DP Expert | 9531 | 40,000 / 20,000 | 51.392% | 50.983–51.802% (99%) | 45634710467 |
| v7-I1RO vs v5-R | 9531 | 40,000 / 20,000 | 50.148% | 49.925–50.370% (99%) | 45634710467 |
| v7-I1RO vs v6-P | 9541 | 100,000 / 50,000 | 50.136% | 50.038–50.235% (99%) | 45634717931 |
| v7-I1RO vs v6-P | 9551 | 200,000 / 100,000 | 50.028% | 49.958–50.098% (99%) | 45668088483 |
| v7-I1 vs v6-P | 9552 | 200,000 / 100,000 | 50.020% | 49.943–50.097% (99%) | 45668095586 |
| v7-I1R vs v6-P | 9552 | 200,000 / 100,000 | 50.033% | 49.956–50.111% (99%) | 45668102728 |
| I2RO1 vs v4-D | 9571 | 100,000 / 50,000 | 50.548% | 50.296–50.800% (99%) | 45677873061 |
| v5-R vs v4-D | 9571 | 100,000 / 50,000 | 50.547% | 50.293–50.800% (99%) | 45677873061 |
| I2RO1 vs v5-R | 9571 | 200,000 / 100,000 | 50.064% | 49.969–50.158% (99%) | 45677867233 |
| I2RO1 vs v4-D | 9581 | 40,000 / 20,000 | 50.559% | 50.155–50.962% (99%) | 45677888312 |
| I2RO1 vs v5-R | 9581 | 200,000 / 100,000 | 50.019% | 49.924–50.114% (99%) | 45677883743 |
| I2RO1 vs v4-D | 9591 | 40,000 / 20,000 | 50.905% | 50.503–51.307% (99%) | 45717552130 |
| I2RO1 vs v5-R | 9591 | 40,000 / 20,000 | 49.954% | 49.747–50.160% (99%) | 45717547846 |
Dots mark estimates, capped bars show intervals, and the dashed line marks 50%. Every row uses the same 49.5–51.5% scale.
-
v6-P vs v5-R · 9511 50.131% (50.005–50.257%)
-
v6-P vs v5-R · 9512 50.209% (50.010–50.408%)
-
v7-I1RO vs v6-P · 9531 50.091% (49.994–50.188%)
-
v7-I1RO vs v6-P · 9541 50.136% (50.038–50.235%)
-
v7-I1RO vs v6-P · 9551 50.028% (49.958–50.098%)
-
I2RO1 vs v4-D · 9571 50.548% (50.296–50.800%)
-
I2RO1 vs v5-R · 9571 50.064% (49.969–50.158%)
-
I2RO1 vs v4-D · 9581 50.559% (50.155–50.962%)
-
I2RO1 vs v5-R · 9581 50.019% (49.924–50.114%)
In the v2 confirmation against DP Expert, v2 averaged 191.08 points to 191.94. v5-R passed all three registered 9501 tests against v2, v3, and DP Expert. Against v2 it averaged 189.13 points to 190.82. v6-P beat v5-R directly in 9511 (Holm-adjusted decision at α = 0.01) and 9512, while their common-opponent contrast against v2 was +0.071 percentage points in 9511 (99% CI −0.051 to +0.192, 50,000 pairs). Results index · 9501 tournament shards · 9501 aggregate · v6 confirmation
In v7’s 9531 primary family, I1RO beat DP Expert (51.392% credit despite mean scores 189.65 to 192.17). Its v6-P comparison missed the Holm-adjusted threshold (adjusted p = 0.016 at family α = 0.01). The 9541 replication was positive (one-sided p = 0.0002). The larger 9551 test missed the threshold (p = 0.152), as did each 9552 variant. I1RO remains partially confirmed, and v6-P retained the research lead. 9531/9541 summaries · Final v7 interpretation
I2RO1 passed the 9571 test against v4-D (Holm-adjusted p ≈ 2.3 × 10−8) and replicated in 9581. Its 9571 comparison with v5-R missed the threshold (p = 0.041 at family α = 0.01), and the 9581 interval again included 50%. The v5-R row against v4-D in 9571 is descriptive. Family 9591 selected I2RO1 as the finalist, with superiority over v5-R still unresolved. The service retained v4-D for free Very Hard and kept v5-R as an opt-in trial. Product handoff · Service decision D-V7-6 · Difficulty mapping · Trial configuration · AI levels (Korean)
| Matchup (A vs B) | Family | Wins | Draws | Losses | Shard logs |
|---|---|---|---|---|---|
| v7-I1RO vs v6-P | 9551 | 99,284 | 1,544 | 99,172 | JSONL |
| I2RO1 vs v4-D | 9571 | 50,165 | 766 | 49,069 | JSONL |
| v5-R vs v4-D | 9571 | 50,162 | 769 | 49,069 | JSONL |
| I2RO1 vs v5-R | 9571 | 99,347 | 1,561 | 99,092 | JSONL |
External strategy ports
The separate external-strategy comparison used 2,000 seat-swapped games per port, all under YachtDiceLab’s 12-category rules. RustOptimalEquivalent12 was a proxy with the same expected-score objective and earned 49.250% against Win DP v2 (multiplicity-adjusted 98.75% CI 48.313–50.187%). BenjiWinObjective12 used a local win-objective proxy and earned 50.025% (49.189–50.861%). The comparisons establish no advantage for either proxy. Original binaries, 13-category joker rules and original evaluation objectives would require a separate benchmark. Rule adaptations and original sources · Port definitions · Comparison runner
Ablation Study
Rollout and solver depth. In 9501 against v2, v5-X3 (DP Expert with an exact interactive endgame when both players have at most three open categories) trailed v5-R by 0.337 percentage points (paired 99% CI −0.596 to −0.077). Adding the exact three-category interactive endgame to v5-R (v5-B3) yielded +0.046 points (−0.051 to +0.143). Each contrast uses 50,000 seed pairs. v5 paired ablations
Opponent response. Across 2,400 K=4 positions (both players at most four categories left, sampled from 300 development games in 9101), regret was 0.0171 percentage points per turn for v6-P, 0.0151 for the nonreactive I1D control, 0.0089 for I1RO, and 0.0035 for I2RO. This supports explicit opponent response as a mechanism in the tested endgame. I2RO1 reduced single-bank regret from v5-R’s 0.0270 to 0.0043 at K=4 and from 0.0258 to 0.0062 on the 2,000-position K=5 sample. In full-game development play, I2R and I2RO had slightly negative point estimates against I1RO, so the registered research-track confirmation was deferred. K=4 response ablation · I1RO regret · I2RO regret · Single-bank ablation · Development matchups and K=5 protocol
Computational Cost
v6-P and I1RO both use seven PMF banks (about 2.1 GB for Float64 tables, about 1 GB for Float32 tables). In the early v7 Actions matches, I1RO averaged about 2.0–2.2 ms per decision (p99 approximately 16–18 ms against v6-P), versus about 0.19 ms for v6-P. The 100,000-game head-to-head matches used roughly 8,200–8,800 aggregate runner CPU seconds for both agents. A separate Float64 server prototype used about 2.7 GB resident after loading seven banks. Table memory · Runner timing · Server prototype measurements
In the clean archived browser benchmark, v5-R and I2RO1 each used 146.25 MiB of WASM linear memory. I2RO1 took 4.5 ms mean, 39.2 ms p99, and 49.3 ms maximum per decision in a desktop Chromium Web Worker across 20 games. Pixel 7 emulation at 4× CPU slowdown on the main thread measured 18.9 ms mean, 163.4 ms p99, and 187.8 ms maximum. v5-R measured 0.14 ms and 0.48 ms mean in those two configurations. The I2RO1 bank took about 8.2 s to build on desktop and 33 s under emulation on a cold start. Decision timing excludes setup. Linear memory excludes JS heap and process overhead. The emulated figures describe the benchmark host, and physical Android/iOS measurements remain open. Browser and Node measurements · Measurement protocol
Limitations
The claims apply to the named YachtDiceLab policies, seeds, engine, and fixed game rules. Results against humans or an external field, whole-game optimality, and performance under other rules require separate evidence. Establishing the state of the art (SOTA) would require independent opponents evaluated with the same rules, objective, and computational budget. The intervals report estimation uncertainty, and the registered one-sided tests determine superiority. Establishing equivalence or noninferiority requires a design for that objective, such as the v5-R Float32 noninferiority check. Endgame positions come from development games, and lower regret over four or five remaining categories has limited predictive value for full-game strength. v7 limitations · Float32 noninferiority protocol
The archive audit found 60 game seeds shared by two 9106 teacher datasets, so a joint analysis needs a game-seed split. The 9107 log repeats shard 1 in four matchups, with one retained compressed result per shard and matchup. The audit examined a sample of CI artifacts and confirmed only part of the public summary against raw materials. Its legacy cache and seed-address findings limit assumptions about unfinished or undocumented runs. Audit findings and coverage
Reproducibility
For v2, the run uses separate seed bases 1,350,000 and 1,370,000. For v5–v7, the runner hashes 0x5eed0000 + family × 1,000,003 + shard × 20,011 + i, where i is the pair index within a shard. Use the model revision and shard plan from the matching run. The run history includes v2 76f206d, v5 96b0025, v6 c8a3bd3, early v7 5561c58, 9551/9552 9c62460, 9571/9581 7cd8f89, and 9591 e638a62. The 9501 aggregation was a separate run. v2 seed schedule · v5–v7 runner · Workflow · Original 9501 run
The versioned shard lines contain win/draw/loss counts and the first two moments of pair credit. Pool those moments by matchup to reproduce the paired interval. Each displayed JSONL aggregate has 20 unique shards per matchup. For example, from the repository root:
python3 scripts/research-v7/shard-lines.py training/results/v7/confirm-v71/shards-9551.jsonl
To reproduce a tournament shard, check out the run’s model commit, install the locked dependencies, and use that run’s pairing and seed parameters. The following is shard 0 of the archived 9571 v4-D comparison. It writes the individual game scores to a compressed file.
git switch --detach 7cd8f89
npm ci
npx tsx scripts/research-v5/bench.ts --a p-I2RO1 --b v4D --family 9571 --shard 0 --pairs 2500 --out out
The 9102 and 9107 compressed shards also preserve individual scores and seeds. Aggregate one file per shard and matchup. The 9581 and 9591 figures above follow the archived summary outputs. Actions artifacts are subject to retention limits, so the pinned summaries and JSONL logs provide stable entry points. Aggregation code · 9102 raw shards · 9107 raw shards · Audited Actions sample
Future Work
The archived roadmap prioritizes early- and midgame decision quality, where endgame teachers provide little coverage. It proposes exact teacher generation around six open categories, sampled rollout regret for larger states, and faster simulation with additional variance reduction. The record leaves the 9561-series research and 9592 product seed reservations unused. Any resumption should keep teacher splits at the game-seed level and check physical device latency and memory before revisiting the service model. Archived directions · Device validation plan
References
- Nintendo. 51 Worldwide Games · Yacht Dice.
- T. Verhoeff and E. T. J. Scheffers (1999). Optimal solitaire Yahtzee player & proficiency test.
- J. Pawlewicz (2011). Towards Optimal Play in Multi-Player Yahtzee. ICGA Journal 34(1), 7–21.
- W. Dabney et al. (2018). Distributional Reinforcement Learning with Quantile Regression. AAAI.
- P. Glasserman and D. D. Yao (1992). Some Guidelines and Guarantees for Common Random Numbers. Management Science 38(6), 884–908.
- S. Holm (1979). A Simple Sequentially Rejective Multiple Test Procedure. Scandinavian Journal of Statistics 6(2), 65–70.
YachtDiceLab research records