•
7 min read

YoloYamb: Testing with Yahtzee

This is Part 4 of a four-part series on YoloYamb. Part 1: the original model · Part 2: Monte Carlo Tree Search · Part 3: a superhuman generalist · Part 4: testing with Yahtzee

Once YoloYamb could play every Yamb variant better than any human, I wanted to see how it would do at Yamb’s more famous cousin, Yahtzee.

Yahtzee also happens to have one big advantage over Yamb: it’s solved. Tom Verhoeff computed the optimal strategy for solitaire Yahtzee, which averages 254.59 points a game. Yamb’s state space is far too big for that, which is why I always struggled to figure out if YoloYamb was approaching perfect play or just strong compared to casual players. With Yahtzee, I can grade every single decision the model makes against perfect mathematical play.

Just Dropping It In

A Yahtzee scorecard is somewhat similar to one free-order Yamb column: ones through sixes, three and four of a kind, full house, two straights, and yahtzee (which is the same as yamb). The only box with no Yamb equivalent whatsoever is chance, which scores the sum of all five dice no matter what they show. Conversely, Yamb has max and min rows, which don’t exist in Yahtzee. Both also score the sum of the dice, but in Yamb you want max as high as possible and min as low as possible. I tried chance in both max and min, pre-filling the other with a zero. Putting chance in min turned out worse than max, likely because the model has learned to aim for a low sum in min, while chance, like max, rewards a high one.

I had Claude write an exact solver that reproduces Verhoeff’s 254.59 score. Then I had YoloYamb play 1,000 games. To cancel out luck, each move is graded by how many expected points it gives up compared to the perfect move. A player’s expected score is 254.59 minus its average loss per game:

PlayerExpected score
Perfect play254.6
Greedy (plays each turn perfectly for this turn’s points)217.0
YoloYamb, chance in max199.3
YoloYamb, chance in min189.6

Brutal. The superhuman Yamb player lost to a simplistic greedy bot by 18 points.

Yamb Habits

The model wasn’t playing Yahtzee badly so much as it was playing Yamb on a Yahtzee scorecard. The biggest issue was straights. In Yamb, a small straight is exactly 1-2-3-4-5 and a large straight is exactly 2-3-4-5-6. In Yahtzee, a small straight is any four in a row and a large straight is any five, both completely different rules. The model zeroed out the small straight in 47% of games (perfect play: 1%) and the large straight in 42% (perfect play: 17%). In fact, it does exactly what a good Yamb player should:

  • On a first roll of 1-2-3-4-5, it scores the small straight for 30 instead of taking 40 for the large straight, which that roll also is in Yahtzee.
  • On 1-2-3-4-6, it holds 2-3-4-6 and rolls for the 5, even though 1-2-3-4 is already a small straight in Yahtzee.

The other habits come from features I hardcoded into the network. To help it learn Yamb’s bonuses more quickly, the model is fed a few hand-built inputs: how close the upper section is to Yamb’s bonus at 60 (Yahtzee’s is 35 points at 63), and Yamb’s middle term, (max − min) × ones. That second one fires as soon as chance sits in the max row, so the model gets confused and protects its ones unnecessarily. On 1-1-4-5-6, it keeps the pair of ones. It never once zeroed out the ones box, which perfect play uses as a dump 12% of the time. All of these deviations add up, suppressing the occurrence of the upper bonus to a low of 16%, versus 68% expected in perfect play.

YoloYamb also has no idea Yahtzee pays 100 points for every extra yahtzee, and its value head predicts scores in 54-point bins built for Yamb games that run into the thousands. One bin is a fifth of an entire Yahtzee game.

Teaching It Yahtzee

For a moment, I considered changing the architecture to remove the hardcoded Yamb features, but I decided I wanted to see how far post-training alone could take YoloYamb. To do this, I kept the network exactly as it was and ran the same luck-adjusted PPO recipe that got it to superhuman Yamb. The model only learned from its own games and the perfect play solver was only used to grade.

For training I maxed out min with 80 instead of 0, which starts it slightly worse at 57.1 points behind perfect play, then unleashed it. It unlearned its Yamb habits fast:

Points per game lost to perfect play over 152 PPO segments, on a log scale. The drop-in model loses 57.1 points a game, passes the greedy bot's 37.6 at segment 7, and drops to about 6 by segment 40. Progress then slows to about 1.9 by segment 150. A branch with 4 times as many games per cycle, starting at segment 132, reaches 1.57 by segment 152

It passed the greedy bot after just 7 segments, which took under half an hour on my RTX 4090. After 40 segments and 3.6 hours of PPO, YoloYamb was within 6 points of perfect play. Most of that came from fixing straights and figuring out the upper bonus. I tried rescaling the upper section so the built-in “upper/60” feature would mean 63, but plain PPO learned 63 on its own faster than that manual version did.

The gains eventually slowed, and by segment 150 the model stalled at around 1.9 points per game. Quadrupling the games per cycle from 4,096 to 16,384 got it moving again, down to 1.57. Interestingly, for the first 5 segments the bigger batch looked like a waste of compute.

The final check was 96,000 fresh games where YoloYamb achieved an average of 252.96 against perfect play’s 254.56 on the same dice, or 1.52 points per game from perfect, 99.4% of optimum. About 7% of YoloYamb’s decisions remain suboptimal, mostly in dice holds rather than scoring, and about 9% of YoloYamb’s games are literally perfect from start to finish.

The whole training process took about 18 hours and 3.5 million games, compared to 645 hours and 3 million games for the Yamb model itself.

For comparison, the best reinforcement learning result I could find is a December 2025 preprint whose A2C agent, trained from scratch on 1 million games, averages 241.78, within 5% of perfect play. Yahtzotron lands around 240. YoloYamb has the benefit of sitting on top of the 645 hours and 3 million games it took to get superhuman at Yamb. Nonetheless, a model that had only ever seen Yamb, with Yamb’s rules still directly wired into its inputs, got within 0.6% of perfect Yahtzee play in under a day.

That’s a pretty good sign it learned something general about dice games, and a good boost to my suspicion that it’s playing superhuman Yamb.