Chapter 23 — Exercises: Engine-Assisted Preparation
🎭 Composite data: "Dev's games" are real anonymous Lichess blitz games relabelled as one composite player for teaching (see Chapter 1). The positions and engine evaluations are real; Dev is not.
Difficulty: ⭐ recall and concepts · ⭐⭐ apply to a position or a small data task · ⭐⭐⭐ judgment, multi-step analysis · ⭐⭐⭐⭐ open-ended research.
All positions come from real games in the book's data or from the chapter's English Attack and Stafford
trees; every solution was checked with Stockfish 19 at the stated depth (evaluations from White's point of
view). Scripts referred to are in this chapter's code/ folder.
Part A — Concepts ⭐
A1. List the four steps of the preparation workflow in order and write one sentence on what each step can tell you that the previous one cannot.
Answer
(1) Database: what is actually played and how often — the engine cannot tell you that. (2) Engine: what each choice leads to — the database cannot tell you whether a popular move is good. (3) Model games: the plans beyond the moves — neither numbers nor PVs explain what to do on move 20. (4) Must-know positions: where players at your level actually go wrong — the short list you memorise.
A2. Define node, tabiya and book as the chapter uses them. Why does the chapter's book use exact move sequences, and what is one consequence of that choice?
Answer
A node is a position reached by a specific move sequence; a tabiya is a node that starts a whole family of games; the book is the set of move sequences played at least five times in PGN Mentor master games from 1990 on. Exact sequences are simple and fast to compute without replaying games; the consequence is that transpositions count as leaving book (a game reaching the same position by another move order "exits" early), so exit plies are conservative.
A3. Why should you trust database frequencies sooner than database scores?
Answer
Frequencies are proportions of all games at the node and stabilise with modest samples; scores are proportions within each branch, so each needs its own large sample, and they mix the move's merit with who chooses it (selection). The English Attack's Lichess 6...e6 score of 44.6% rests on 87 games with an interval of 34.6–55.0%.
A4. What is multi-PV, and why can a multi-PV search and a single-line search at the same depth disagree?
Answer
Multi-PV asks the engine for its best k moves, each with its own evaluation and line. It splits and reorders the search across those lines, so evaluations and even the order of near-equal moves can shift by tenths (after 7...Be6 8.f3: single line +0.41 with 8...Be7; multi-PV 4 has 8...Nc6 +0.27 first, both at depth 22).
A5. Explain the horizon effect in your own words and give the chapter's rate of large shallow-vs-deep disagreements.
Answer
A search stops at a fixed depth and treats the positions at that depth as if nothing more could happen; a decisive tactic or threat just beyond it is invisible. In 577 undecided positions from Dev's games, depth 6 and depth 16 differed by at least a pawn in 73 (12.7%) and by at least two pawns in 29.
A6. Define the practical residual of an opening position. What sign does it have in the Stafford Gambit at club level, and roughly how large is it?
Answer
White's actual score from the position minus the score implied by the engine evaluation through the win-% model. In the Stafford after 4...dxc6 it is strongly negative: 48.3% actual against about 68.5% implied at Lichess 1400–1799 — about −20 points.
A7. Write the must-know score formula and explain why each of its three factors is necessary.
Answer
Must-know = reach × error rate × mean cost of errors. Without reach, you would memorise positions you never see; without error rate, positions everyone handles; without cost, trivial inaccuracies.
A8. True or false, with a reason: "If the engine says two openings are equal, they are equally good choices for me."
Answer
False. Equal under perfect play; your result depends on how hard each position is to play for your side and on what your opponents know. Among 154 engine-equal opening positions at Lichess 1400–1799, White's score ranged from 37.4% to 63.9%.
Part B — Positions ⭐⭐
B1. Find the tactic. White to move (from one of Dev's English Attack games). A depth-6 search prefers a quiet pawn move. What does White play?

♟️ Position: White Kg2, Qe4, Rd5, Bf2, a2, b3, f3, g3, c4; Black Ke7, Qc7, Re6, Bf6, e5, a6, b7, f7, g7 — White to move. FEN:
8/1pq1kpp1/p3rb2/3Rp3/2P1Q3/1P3PP1/P4BK1/8 w - - 6 32
Solution
32.Bc5+! Ke8 33.Qh7 and in Stockfish 19's main line Black gives the queen for the bishop (33...Qxc5 34.Rxc5); +9.68 (Stockfish 19, depth 24). At depth 6 the engine preferred 32.b4 (+1.29); from depth 10 on it finds Bc5+. Dev played 32.Bc5+ in the game. The idea: the check drives the king to the back rank, and the queen's invasion on h7 creates threats Black cannot meet without giving material.
B2. Find the tactic. White to move — Dev's turning point from section 23.8. Black's king is in the centre and the a8-rook has not moved.

♟️ Position: White Kc1, Qe3, Rd1, Rh1, Bc4, Nc3, a2, b2, c2, f3, g4, h4; Black Ke8, Qd8, Ra8, Rh8, Bg7, Bc8, d5, h5, a6, e6, g6, f7 — White to move. FEN:
r1bqk2r/5pb1/p3p1p1/3p3p/2B3PP/2N1QP2/PPP5/2KR3R w kq - 0 16
Solution
16.Bxd5! — +6.63 (Stockfish 19, depth 22): 16...Bd7 17.Bxa8 Qxa8 and White is an exchange and a pawn up with the attack. Three white pieces (bishop, knight, rook) hit d5, two black units (the e6-pawn and the queen) defend it, and the capturing bishop lands on the long diagonal aimed at a8. In the game, 16.Rhe1 dropped the evaluation to −1.36 (depth 16).
B3. Analyze this position. White to move after 6...Ng4. Rank these moves — 7.Bc1, 7.Bg5, 7.Be2, 7.Bd2, 7.Qe2, 7.Qd3, 7.Qf3 — into "keeps the edge", "roughly equal", "concedes something real".

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Bf1, Be3, Nc3, Nd4, a2, b2, c2, f2, g2, h2, e4; Black Ke8, Qd8, Ra8, Rh8, Bc8, Bf8, Ng4, Nb8, a6, d6, b7, e7, f7, g7, h7 — White to move. FEN:
rnbqkb1r/1p2pppp/p2p4/8/3NP1n1/2N1B3/PPP2PPP/R2QKB1R w KQkq - 2 7
Solution
Stockfish 19, depth 22, evaluation after each move (single line): 7.Bc1 +0.41, 7.Bg5 +0.25 — keep the edge. 7.Qd3 −0.08, 7.Qe2 −0.13, 7.Qf3 −0.24 — roughly equal; each allows ...Nxe3 and Black gets the bishop pair. 7.Bd2 −0.41 (7...Qb6 hits d4 and b2) and 7.Be2 −1.26 (7...Nxe3 8.fxe3 with a damaged structure) concede something real. The principle: the e3-bishop is attacked; move it to a square where it stays useful (c1, g5) rather than defending it with the queen. Dev lost a game with 7.Be2.
B4. Must-know position. White to move after 6...Ng4 7.Bg5 h6 8.Bh4 g5 9.Bg3 Bg7. The English Attack reflex says 10.f3. Should White play it?

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Bf1, Bg3, Nc3, Nd4, a2, b2, c2, f2, g2, h2, e4; Black Ke8, Qd8, Ra8, Rh8, Bg7, Bc8, Ng4, Nb8, g5, a6, d6, h6, b7, e7, f7 — White to move. FEN:
rnbqk2r/1p2ppb1/p2p3p/6p1/3NP1n1/2N3B1/PPP2PPP/R2QKB1R w KQkq - 2 10
Solution
No. 10.f3? Ne3! forks the queen's square and hits c2: 11.Qd2 Bxd4 12.Bf2 Qb6 13.Nd1 Nxc2+ 14.Qxc2, −1.71 (Stockfish 19, depth 22). The f2-pawn was the last guard of e3. Play 10.Qd2 (+0.45) or 10.h3 (+0.34) — Stockfish 19, depth 24, multi-PV 3. In our tree 21% of all players, and most club players who reached this node, chose 10.f3.
B5. Build the plan. White to move after 6...e5 7.Nb3 Be7 8.f3 Be6 9.Qd2 O-O. A quarter of players start the pawn storm with 10.g4 here. What is wrong with that, and what is the better order?

♟️ Position: White Ke1, Qd2, Ra1, Rh1, Bf1, Be3, Nb3, Nc3, a2, b2, c2, g2, h2, f3, e4; Black Kg8, Qd8, Ra8, Rf8, Be6, Be7, Nf6, Nb8, e5, a6, d6, b7, f7, g7, h7 — White to move. FEN:
rn1q1rk1/1p2bppp/p2pbn2/4p3/4P3/1NN1BP2/PPPQ2PP/R3KB1R w KQ - 3 10
Solution
After 10.g4 Black strikes in the centre with 10...d5! (−0.37, Stockfish 19, depth 22; the line includes ...Bh4+ because the white king is still on e1 with the e1–h4 diagonal open). Castle first: 10.O-O-O (+0.31 at depth 22; +0.28 at depth 24, multi-PV) and then g4. General rule: in opposite-side castling races, answer "what does my opponent want?" — here the central break — before launching the storm.
B6. Analyze this position. Black to move in Van Foreest–Giri, Tata Steel Masters 2026, after 16.Ncd5 Nxd5 17.exd5. Black has several plausible moves. How many are actually playable?

♟️ Position: White Kb1, Qd2, Rd1, Rh1, Bf1, Be3, Nb4, b2, c2, g2, h2, a3, f3, d5; Black Kg8, Qb7, Rc8, Rf8, Be6, Be7, Nd7, b5, e5, h5, a6, d6, f7, g7 — Black to move. FEN:
2r2rk1/1q1nbpp1/p2pb3/1p1Pp2p/1N6/P3BP2/1PPQ2PP/1K1R1B1R b - - 0 17
Solution
Essentially one. Stockfish 19 at depth 22 (multi-PV 3): 17...Bf5 +0.39, while 17...Rc7 (+5.12) and 17...Nf6 (+5.14) lose a piece to dxe6. The e6-bishop is attacked by the d5-pawn; it must move, and f5 is its active square. Giri played 17...Bf5. A model-game lesson: when the structure changes with a capture on d5, check what the new pawn attacks before anything else.
B7. Find the tactic. White to move (another of Dev's games). At depth 6, Stockfish prefers 26.Qe5.

♟️ Position: White Kg1, Qf5, Re1, Bd4, b2, f2, g2, b3, h3; Black Kg8, Qa8, Rc2, Be7, b4, e4, d5, g7, h7 — White to move. FEN:
q5k1/4b1pp/8/3p1Q2/1p1Bp3/1P5P/1Pr2PP1/4R1K1 w - - 0 26
Solution
26.Qe6+! Kf8 27.Bxg7+! Kxg7 28.Qxe7+, picking up the bishop with check: +7.63 (Stockfish 19, depth 24, multi-PV 2) against +1.22 for 26.Qe5. At depth 6 the engine gives 26.Qe5 +2.50 and does not see the combination; from depth 8 it prefers 26.Qe6+. Dev found 26.Qe6+ in the game.
B8. Must-know position (Stafford). White to move after 1.e4 e5 2.Nf3 Nf6 3.Nxe5 Nc6 4.Nxc6 dxc6 5.Nc3 Bc5. The most popular club move is 6.Bc4. What does the engine recommend, and why?

♟️ 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
Solution
6.h3! — +2.12 (Stockfish 19, depth 24), ahead of 6.Qf3 (+1.29) and 6.Qe2 (+1.28). It takes g4 from the f6-knight, so ...Ng4 can no longer join the c5-bishop against f2. 6.Bc4 (31% of club games) and 6.d3 (15%) each cost about 25 win-% points at depth 18; after 6.Bc4 Ng4, 93% of players castle and lose another 18 points. A prophylactic pawn move is the must-know answer.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Database research ⭐⭐. Modify code/01_database_step.py to report Black's reply to 6.Be3 by
speed (bullet, blitz, rapid) instead of band in the Lichess sample. Output: a table of shares with raw
n per speed. Which reply's share changes most with speed? Keep the exact-move-order filter.
C2. Engine analysis ⭐⭐. Using outpost.prep.depth_check(), evaluate the four positions in the
chapter's depth ladder at depths 12, 18 and 24, and report which the function flags as unstable (best
move changes or spread > 50 cp). Then add one position of your own choice from a recent game. Expected
output: one small table per position plus the unstable flag.
C3. Database research ⭐⭐⭐. In code/05_depth_by_level.py, change the book threshold from 5 to 2 and
then to 20 master games. Report how the median exit ply by band moves. Does the ranking of bands stay
the same? Explain why the absolute exit ply depends on the size of the reference database.
C4. Engine analysis ⭐⭐⭐. Extend code/03_equal_is_not_equal.py to split the 331 positions into
"gambits" (positions where one side is at least a pawn down in material by the book's piece values) and the
rest. Compare the mean practical residual of the two groups at 1400–1799 and at 2000+. Expected output: a
2 × 2 table of mean residuals with the number of positions in each cell.
C5. Database research ⭐⭐⭐. Build a GameBook (outpost.prep.GameBook.from_movetexts) from the
broadcast games of one opening you play (filter by ECO), run prep.must_know() from your tabiya with
min_games=30 and depth 18, and list the top five nodes. Then rebuild the book using only games where
both players are below FIDE 2000. Which must-know positions appear only in the lower-rated book?
C6. Engine analysis ⭐⭐. For the Stafford position after 4...dxc6, run prep.engine_candidates() at
depths 16, 20 and 24 with multipv=4. Do the top four moves stay the same? Report the largest change in
any move's evaluation between depths 16 and 24.
C7. Code ⭐⭐⭐. Write a function transposition_aware_exit(game, book_epd_set) that computes the book
exit ply by position (EPD) rather than by move sequence, building the reference set by replaying the
PGN Mentor games through python-chess. Run it on a 2,000-game random sample (seed 2026) of Lichess blitz
games at 1400–1599 and compare the median with the sequence-based median (ply 5). Expect the
position-based median to be later; report by how much.
Notes on expected shapes (C1–C7)
C1: three rows (speeds) × reply columns, each row summing to 100, raw n beside each row; the Lichess movetext subset is small at this node, so expect wide uncertainty. C2: four or five tables of three rows; the two middlegame positions from Dev's games jump between depth 12 and depth 24 at least as much as in the chapter's ladder. C3: exit plies rise with a lower threshold and fall with a higher one; the band ordering should be preserved. C4: a 2 × 2 table; per the chapter's top residuals, expect the gambit group to have a clearly negative mean residual for the side that is "better" by the engine. C5: a ranked table; lower-rated books typically surface sideline nodes with higher error rates. C6: the top four may reorder, since they sit within a few hundredths at depth 20. C7: a later median, because transpositions back into book no longer count as exits.
Part D — Judgment & Transfer ⭐⭐⭐
D1. A 1250-rated online player asks you for "the full Najdorf main line to move 20". Using the book-exit table in 23.7, write a short, data-backed reply explaining what you would teach instead and why.
Model answer
At Lichess 1200–1399 the median game leaves master book at ply 5, and 97.8% are out of it by move 5; the first move a player at that level chooses on their own costs about 4 win-% points on average and is a mistake 7% of the time. So twenty moves of theory would almost never be used. Teach the first four or five moves of the main lines, the plans of the two main structures (...e5 and ...e6), the must-know traps in the lines they will really meet, and principles for the first unfamiliar move.
D2. Grace (FIDE ~1850) prepares for a classical open. How should her preparation differ from Dev's (Lichess blitz ~1650)? Use at least two numbers from the chapter.
Model answer
Her games stay in book longer (FIDE 1800–1999 classical: median exit ply 10, against ply 6 at Lichess 1600–1799), and over the board her opponents play the masters' main lines (6...e5 in 73.6% of OTB games below FIDE 2000). She should prepare main lines deeper (to move 8–10), with model games, and expect fewer offbeat replies; Dev needs a broader, shallower tree with more attention to rare moves and to the first moves after a deviation. Both should build must-know lists from games that resemble their own pools.
D3. Stockfish rates a gambit −1.20 for the gambiteer, but at your level the gambiteer scores 55%. Should you play it? Argue both sides and state what extra data you would want.
Model answer
For: the practical score at your level is what decides your results, and the gambit may exploit the same "hard to defend" asymmetry measured in 23.6. Against: selection (gambit players may be specialists), the risk at higher levels and slower time controls (strong defenders neutralise it — compare the Göring Gambit's 63.9% at club level and 48.4% in the masters explorer), and the cost of playing an objectively worse position against prepared opponents. Extra data: the score by band and speed with intervals, the must-know nodes for your side, and how often prepared opponents at your target level reach the refutation.
D4. "Engines have made opening preparation pointless below 2000 — just play principles." Use the chapter's evidence to agree with part of this statement and disagree with the rest.
Model answer
Agree: games leave master book early below 2000 (median ply 4–6 online), and the leaving move — not theory — is where points are lost; principles matter most. Disagree: preparation is not only theory. The must-know analysis finds specific positions where natural moves are costly mistakes and club players make them often (10.f3? in the 6...Ng4 line; 6.Bc4 in the Stafford with error rates of 28–66% at White's first decisions). A few such positions per opening repay the effort at any level.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1 (with Chapter 7) ⭐⭐. 6.h3 in the Stafford (B8) and 9...h5 in Van Foreest–Giri are both prophylactic pawn moves. For each, state the opponent's plan it prevents, and use the null-move idea of Chapter 7 (let the side to move pass) to describe what the opponent would do with a free move.
Answer
6.h3 prevents ...Ng4 joining the c5-bishop against f2; with a free move Black would play ...Ng4 and pressure f2. 9...h5 prevents g2–g4–g5 driving the f6-knight from the defence of d5; with a free move White would play g4. Both are quiet moves that answer "what does my opponent want?" before it happens.
M2 (with Chapter 2) ⭐⭐⭐. Compare the pawn skeletons after 6...e5 7.Nb3 and after 6...e6 in the English Attack. For each, name the key square or break for both sides and the plan it dictates. Then explain why the book's data finds that ...b5 versus ...Nbd7 as Black's first choice depends on the structure.
Answer
...e5: a hole on d5 for White (Nd5, the d5 recapture), Black's counter-square c4 and the ...d5 break when White is not ready; ...e6: d5 covered by a pawn, a flexible centre with the ...d5 break, and a more direct White storm. Because the plans differ — with ...e5 Black must first fight for d5 with pieces (…Nbd7, …Be6), with ...e6 the queenside expansion ...b5 comes naturally — the better developing order differs too (over the board ...b5 first scores 58.4% for Black in ...e6 games, ...Nbd7 first 56.2% in ...e5 games).
M3 (with Chapter 1) ⭐⭐. Using the book's win-% formula, compute the cost in win-% points of 7.Qd3 (−0.08) relative to 7.Bc1 (+0.41) after 6...Ng4 (depth 22 values). Is it a mistake by the book's classification?
Answer
win%(+41) ≈ 53.8 and win%(−8) ≈ 49.3 for White, so the cost is about 4.5 points: below the 5-point inaccuracy threshold — not a mistake, but a real concession.
M4 (with Chapter 20) ⭐⭐⭐. Dev's English Attack score is 36.0% [24.1–49.9] over 50 games. Using the chapter's numbers, explain why preparing the line is still justified, and design the follow-up measurement he should run over his next 200 games (what to count, and what interval width to expect).
Answer
Justified because the line is frequent for him and hard at his level (44.3% for White in his band vs 49.0% overall), and because six of his 14 analysed losses began with opening-phase mistakes, some at must-know nodes. Measurement: over the next games reaching these nodes, count (a) must-know mistakes made vs avoided, (b) the share of losses beginning in the opening phase, and (c) the score with its interval — over 200 games a 95% interval is still about ±7 points, so the score alone will not show a small improvement; the narrower counts can.
M5 (with Chapter 9) ⭐⭐. Exercises B1, B2 and B7 are tactics from English Attack games. Name the tactical motif in each and the strategic precondition that made it possible.
Answer
B1: a check that drives the king back plus a queen invasion (decoy/attack on the king), possible because Black's king stood in the open on e7. B2: capture on an overloaded/under-defended square (d5) with a discovered threat on the a8-rook, possible because Black's king never castled and the rook never moved. B7: a check followed by a bishop sacrifice on g7 to win the e7-bishop with check (removal of the guard / double attack), possible because the black king's shelter was thin and the e7-bishop loose.
Part E — Research & Extension ⭐⭐⭐⭐
E1. Your own preparation card. Choose one line you play. Run the full workflow with outpost.prep:
masters explorer, a GameBook from games that resemble your opponents (your platform, your band), multi-PV
with a depth check, two model games, and must_know(). Produce a one-page prep_card() and a short
report: which positions made the must-know list, which surprised you, and what the data says your
opponents actually play. Note every sample size.
E2. Does the practical gap travel? Extend the 23.6 study to time controls: compute the practical residual of the 331 positions separately for blitz and rapid at 1400–1799. Is the Stafford-type gap larger in blitz? Report the correlation of residuals between speeds and discuss what that implies about whether the gap is about knowledge or about time.
E3. A must-know atlas. Run must_know() on the ten most common openings in the Lichess 1400–1799
band (by family, using each family's main tabiya as root) and rank the openings by the sum of their
top-five must-know scores. Which openings repay preparation the most at this level? Discuss the
limitations: exact move orders, depth 18 evaluations, the Lichess movetext subset's size and weighting.