Case Study 2 — "+2 for the Engine, a Coin Flip for Humans": Preparing Against the Stafford Gambit
Setup
The chapter opened with Lena's problem: 1.e4 e5 2.Nf3 Nf6 3.Nxe5 Nc6 4.Nxc6 dxc6, a gambit that Stockfish
rates as clearly good for White and that club players with White nevertheless fail to beat. Section 23.6
showed it at the top of the "engine-winning, humans losing" list. This case study runs the whole
preparation workflow on it — from White's side, the side that is "winning" — and uses the outpost.prep
module from this chapter's Project Checkpoint to find out where the points are lost.
It is a deliberately different case from Dev's English Attack. There, the opening phase was mostly safe
and the losses came later. Here, the data suggests the opening itself is where the damage happens. The
same workflow should be able to tell the two situations apart. Script: code/case_study_02.py.
The data
Sample. Every balanced game (players within 100 points) in the Lichess movetext subset of our October 2026 sample that reached the position after 4...dxc6 by exactly this move order and lasted beyond it; bots excluded; bullet to classical; un-analysed games weighted ×8 so that the totals estimate the full 4-million-game sample. That is 837 games (weighted 3,581).

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Bc1, Bf1, Nb1, a2, b2, c2, d2, f2, g2, h2, e4; Black Ke8, Qd8, Ra8, Rh8, Bc8, Bf8, Nf6, c6, a7, b7, c7, f7, g7, h7 — White to move. FEN:
r1bqkb1r/ppp2ppp/2p2n2/8/4P3/8/PPPP1PPP/RNBQKB1R w KQkq - 0 5
The engine. Stockfish 19 at depth 20 with four lines ranks 5.Nc3 +1.90, 5.d3 +1.89, 5.Qe2 +1.89 and 5.f3 +1.66; a single-line search gives +2.02 (Stockfish 19, depth 24) with 5.d3, and +2.11 at depth 20 (section 23.6). White is a clean pawn up with no structural damage. Through the win-% model, +1.90 implies an expected score of 66.8% for White.
The results by band:
band n eff_n score lo hi draws
<1400 247 144.1 46.3 38.3 54.4 3.2
1400-1799 407 245.9 48.1 41.9 54.3 6.3
1800-1999 122 70.2 50.8 39.4 62.2 5.1
2000+ 61 42.1 54.5 39.7 68.5 0.3
(White's score %, weighted; Wilson 95% interval on the Kish effective sample size eff_n; balanced
games, bands by average Lichess rating. Section 23.6's figure of 406 games and 48.3% for the 1400–1799
band required games to last past ply 10; here any game that continued past the position counts.)

📊 Figure (described): White's actual score in each band (dots with 95% intervals) against the 66.8% the engine's +1.90 implies (orange line). Every band scores far below the line; the two lower bands are close to 50% with intervals that exclude the engine-implied score; the stronger bands are higher but rest on only 122 and 61 games, so their intervals are wide.
White's fifth move — popularity, results and the engine:
move n share score eval_after
d3 334 39.04 44.64 1.90
Nc3 248 28.23 46.93 1.98
e5 144 18.29 59.16 0.96
Bc4 29 3.55 30.71 0.13
f3 15 1.98 67.61 1.76
(share and score weighted; eval_after = Stockfish 19 at depth 20, White's view, after the move.)
Here is the first surprise. The two moves the engine likes best and club players play most, 5.d3 and 5.Nc3, score below 50% (44.6% and 46.9%). The move the engine likes much less, 5.e5 (+0.96, about one pawn of the advantage gone), scores 59.2% over 144 games. The engine's best move is not the practical best move at this level — at least not without the knowledge that should come with it.
Analysis — where are the points lost?
We built a GameBook from the 837 games and ran prep.must_know() on every node below the Stafford
position reached by at least 40 games, to ply 18, at depth 18:
line ply to_move games reach best eval error_rate mean_cost must_know human_moves
...4.Nxc6 dxc6 5.Nc3 Bc5 10 White 226 25.86 h3 1.97 65.92 24.19 4.12 Bc4 31% (-25), h3 28% (-1), d3 15% (-25), Be2 13% (-16)
...4.Nxc6 dxc6 (the Stafford position) 8 White 837 100.0 d3 2.21 27.76 13.53 3.76 d3 39% (-3), Nc3 28% (-3), e5 18% (-11), Bc4 4% (-18)
...4.Nxc6 dxc6 5.d3 Bc5 10 White 306 35.91 Be2 2.13 43.35 24.05 3.74 Be2 42% (-0), Be3 15% (-14), h3 14% (-0), Nc3 14% (-27)
...5.d3 Bc5 6.Be2 h5 12 White 96 10.50 c3 3.23 55.76 21.01 1.23 c3 33% (-1), O-O 26% (-22), h3 11% (-9), Be3 11% (-23)
...4.Nxc6 dxc6 5.e5 9 Black 144 18.29 Nd5 1.04 38.45 12.64 0.89 Ng4 42% (-7), Ne4 34% (-11), Nd5 8% (-0), Qe7 8% (-6)
...5.Nc3 Bc5 6.Bc4 Ng4 12 White 41 4.86 Rf1 -0.74 100.00 18.14 0.88 O-O 93% (-18)
(Abridged from the script output; reach and error_rate in %, costs in win-% points for the mover.)
Compare this with the English Attack in section 23.5, where the worst White node had an error rate of about 26% and most nodes had none. Here the error rate is 28% at the very first decision and 43–66% at White's next decisions, and the average error costs 21–24 win-% points — a quarter of a game each time.

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Bc1, Bf1, Nc3, a2, b2, c2, d2, f2, g2, h2, e4; Black Ke8, Qd8, Ra8, Rh8, Bc5, Bc8, Nf6, c6, a7, b7, c7, f7, g7, h7 — White to move. FEN:
r1bqk2r/ppp2ppp/2p2n2/2b5/4P3/2N5/PPPP1PPP/R1BQKB1R w KQkq - 2 6
Must-know #1 — after 5.Nc3 Bc5. The black bishop is on c5 aiming at f2; the f6-knight wants ...Ng4. The natural developing move 6.Bc4 (31% of club games) costs about 25 win-% points; so does 6.d3 (15%). The engine's choice is the modest 6.h3 — +2.12 (Stockfish 19, depth 24), with 6.Qf3 and 6.Qe2 (+1.29 and +1.28) behind it. The idea is pure prophylaxis in the sense of Chapter 7: take g4 away from the knight before it can join the queen and bishop against f2. And what happens after the natural 6.Bc4? The next node in the table answers: after 6...Ng4, 93% of White players castle — the obvious move — and it costs another 18 win-% points: the king goes to the wing where Black's queen, bishop and knight are already aimed. The engine prefers 7.Rf1 there, and even that is −0.74 for White at depth 18. In other words, by move 7 the "winning" side's most natural sequence has turned +2 into a position the engine rates as worse for White.
🤖 Engine check: At the node after 5.Nc3 Bc5, Stockfish 19 at depth 24 (multi-PV 3) gives 6.h3 +2.12, 6.Qf3 +1.29, 6.Qe2 +1.28; the line continues 6...Qe7 7.d3 Be6 8.Qe2 Nd7 9.g3 O-O-O. In human terms: White spends a tempo on a pawn move that does nothing for White and everything against Black's plan, then develops behind it. It is exactly the kind of quiet, prophylactic move that humans undervalue and engines love (most engine best moves are quiet — the book's data on this is in Chapter 7).

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Bc1, Bf1, Nb1, a2, b2, c2, f2, g2, h2, d3, e4; Black Ke8, Qd8, Ra8, Rh8, Bc5, Bc8, Nf6, c6, a7, b7, c7, f7, g7, h7 — White to move. FEN:
r1bqk2r/ppp2ppp/2p2n2/2b5/4P3/3P4/PPP2PPP/RNBQKB1R w KQkq - 1 6
Must-know #2 — after 5.d3 Bc5. The other main road reaches the same theme. The engine's move, 6.Be2 (42% of club players find it; +2.17 (Stockfish 19, depth 24)), covers g4 with the bishop. The two most costly choices are 6.Be3 (15%, −14) and 6.Nc3 (14%, −27). Error rate at this node: 43%. And one move later, after 6.Be2 h5, the natural 7.O-O (26% of games) costs 22 points: castling into ...h5–h4 and ...Ng4 is the Stafford's whole idea.
Why 5.e5 scores well. 5.e5 gives back much of the engine's advantage (+0.96) but asks Black the questions: the knight must move at once, and Black's own error rate at the next node is 38%, with the most popular reply 5...Ng4 (42%) costing 7 points and 5...Ne4 (34%) costing 11; the engine's 5...Nd5 is chosen by only 8%. Practically, 5.e5 is a sound way to take Black out of their preparation; objectively, it is a concession. Both statements are true at once.
What it means (and doesn't)
What it means.
- The engine's +2 is real and attainable — with knowledge. The positions are not lost for White; the natural moves are. Two or three must-know positions (6.h3 after 5.Nc3 Bc5; 6.Be2 after 5.d3 Bc5; do not castle into ...h5/...Ng4) cover most of the damage in this tree.
- This is a preparation problem in the strict sense. Unlike Dev's English Attack, where the opening was mostly safe and the losses came later, here the error rates at White's first decisions are 28–66%. A player who learns three positions removes errors that the data says strike in a large share of games.
- "Practical best" depends on what you know. For a player who has not prepared, 5.e5 is the practical choice (59.2% over 144 games, though selection may play a part — players who choose 5.e5 may be the ones who know the gambit). For a player who has, 5.d3 or 5.Nc3 followed by the must-know moves keeps the engine's full advantage.
What it doesn't mean.
- It does not mean the Stafford is a good opening. At master level the explorer has only 11 games from this position (White scores 77.3%); masters do not play it because they know the refutation.
- The band comparison does not prove that strong players handle it better: the 1800–1999 and 2000+ bands rest on 122 and 61 games, and their intervals overlap the lower bands'.
- Scores by fifth move compare games, not moves under controlled conditions. The 5.e5 players and the 5.d3 players may differ in strength, speed and preparation.
Discussion questions
- The engine's top three fifth moves are within 0.02 pawns of each other at depth 20. The database shows them scoring 44.6% to 46.9%, while a move rated a full pawn worse scores 59.2%. Write a short note to Lena explaining what she should play, and why it depends on how much time she will spend preparing.
- Compare the error rates in this tree (28–66% at White's main nodes) with the English Attack tree (section 23.5: the worst White node about 26%, most at zero). What does that difference tell you about which openings repay preparation time?
- Explain in terms of the pieces on f2, g4 and c5 why 6.h3 is so much better than 6.Bc4 after 5.Nc3 Bc5. Could you have found it without an engine, using the "what does my opponent want?" question?
- The masters explorer shows White scoring 77.3% over 11 games. Is that evidence for anything? What would you need to trust it?
- If you were the Black player, how would you use this table? Which node would you most want your opponents to reach?
Your turn
Pick a gambit or offbeat line you meet as the defending side in your own games (the Englund, the Elephant
Gambit, the Göring Gambit and the Scandinavian main line from section 23.6 are all in the book's data).
Using case_study_02.py as a template (change STAFFORD), produce: (a) the score by band with intervals
against the engine-implied score; (b) the move-5 (or first-decision) table; (c) the top three must-know
nodes from prep.must_know(), each re-checked at depth 24 and drawn with boards.save_board. Finish with a
five-line preparation card: the two or three positions you will memorise, and one sentence on what the
data says your opponents at your level actually play.