Exercises — Chapter 5
Difficulty: ⭐ recall and concepts · ⭐⭐ apply to a position or a small dataset · ⭐⭐⭐ analysis and judgment · ⭐⭐⭐⭐ open-ended research.
Every position below comes from a real game in the book's data (master games from PGN Mentor, or over-the-board games relayed on Lichess broadcasts). Every engine number is a Stockfish 19 evaluation from code/07_exercise_positions.py, in pawns from White's point of view, with the depth stated. Space counts, holes and centre types come from Outpost's space module.
Part A — Concepts ⭐
A1. State the book's space-count definition in your own words. Why does it look only at the c-, d-, e- and f-files?
Answer
Count the squares on the c- to f-files of your 2nd–4th ranks that no enemy pawn attacks and that none of your own pawns occupies, plus the squares on the c- to f-files of your 5th and 6th ranks that your pawns attack. The central files are the routes pieces use to cross from one wing to the other; room there is what lets a cramped side regroup, so that is where space is counted. Room on the a- or h-file helps a rook but rarely a knight or bishop.
A2. A knight attacks 8 squares from d5 and 2 from a1. Using the reach heat map of Section 5.2, how many squares does a bishop attack from d4, and from a1? What is the average for a queen over all 64 squares?
Answer
Bishop: 13 from d4, 7 from a1. Queen: an average of 22.75 squares (21 on the rim, 27 on the four central squares).
A3. Classify each centre with the book's rule (closed, fixed, mobile, open, fluid): (a) French Advance after 3.e5; (b) a Carlsbad structure with d4 against d5 and no e-pawn for Black; (c) White pawns on d4 and e4, no black d- or e-pawn; (d) only one pawn left on the d- and e-files.
Answer
(a) Closed — two locked pairs (d4/d5 and e5/e6), both central. (b) Fixed — exactly one locked pair, on the d-file. (c) Mobile — one side has both centre pawns and the other has none. (d) Open.
A4. What is a hole? After 1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6 6.Be3 e5, which square is Black's best-known hole, and why can no black pawn ever cover it again?
Answer
A hole is a square on your own 3rd or 4th rank that none of your pawns can ever attack again (no pawn of yours on an adjacent file behind that rank). In the Najdorf with ...e5, d5 is the hole: the c-pawn has been exchanged and the e-pawn has passed the 4th rank, so neither adjacent file has a black pawn that could ever reach a square attacking d5. Outpost lists d5 (and b6, d6) as Black's holes in this position.
A5. What is the difference between a hole and a ready-made outpost? Which of the two still went with the evaluation once the chapter held material level?
Answer
A ready-made outpost is a hole that an enemy pawn already supports — the opponent can put a piece there and keep it there. With material level (OTB middlegames), plain holes had essentially no relationship with the evaluation (r = 0.006) while ready-made outposts still did (r = 0.067; Lichess 0.116).
A6. Your pawns stand on d4, e5 and f4 (all dark squares) and you must give up one bishop. Which bishop should you keep, and why?
Answer
Keep the light-squared bishop. Pawns guard only squares of their own colour (a diagonal capture never changes colour), so dark-square pawns guard dark squares; the light squares around them — d5, e4, f5 and so on — are guarded by no pawn. Without the light-squared bishop they become a weak colour complex.
A7. Explain in terms of squares and routes why the side with less space usually wants to exchange pieces.
Answer
The cramped side has fewer safe squares than pieces, so pieces queue for the same squares and block each other's routes from wing to wing. Each exchange removes one piece competing for those squares. The data agree: with near-full material a unit of space is worth about 3 cp (OTB), with 27–44 points of non-pawn material about 0.5 cp — and in Case Study 2 the cramped side's rating-adjusted score improved from −4.5 to −0.7 points with heavy even exchanges.
A8. What did the hypermodern players mean by "control the centre without occupying it"? Name two hypermodern defences and the pawn break each uses against White's centre.
Answer
Attack the central squares from a distance (fianchettoed bishops, knights on f6 and c6) rather than putting pawns on them, let the opponent build a pawn centre, and then undermine it. Examples: King's Indian — ...e5 (or ...c5) followed by ...f5; Grünfeld — ...c5 with the g7-bishop and ...Nc6 hitting d4; Alekhine — ...d6 striking e5.
Part B — Positions ⭐⭐
Solutions were checked with Stockfish 19 (multi-PV 3 at depth 20, best line at depth 24).
B1. Analyze this position. Yuffa–Zhu Jiner, Prague Chess Festival 2026 (Challengers), after 14.dxe5.

♟️ Position: White Kg1, Qc2, Ra1, Rf1, Bc1, a2, f2, g2, h2, e4, e5; Black Kg8, Qd8, Ra8, Rf8, Bg4, c6, g6, a7, e7, f7, h7 — Black to move. FEN:
r2q1rk1/p3pp1p/2p3p1/4P3/4P1b1/8/P1Q2PPP/R1B2RK1 b - - 0 14
(a) Count the space and name the centre type. (b) Which colour complex is weak for each side? (c) Where should Black's queen go?
Answer
(a) White 14, Black 5 (+9); fluid centre. (b) Outpost: White has a light-square weakness (holes a3, c3, d3, a4, c4, d4 include three light squares, and White has no light-squared bishop); Black a dark-square weakness (holes a5, c5, a6, c6, h6, no dark-squared bishop after 13...Bxe5). (c) Stockfish 19 depth 20: 14...Qa5 (+0.51), 14...Re8 (+0.71), 14...Qd4 (+0.74); depth 24 also 14...Qa5 (+0.50) — which Zhu Jiner played (+0.61 at depth 24 after it). The queen heads for the light squares of White's queenside (a2, c4) where White has no bishop to contest them. White is better (the e-pawns and f-pawn are mobile) but only by half a pawn: Black's counterplay against a2 and on the light squares is real.
B2. Build the plan. Koneru–Assaubayeva, Norway Chess Women 2026, after 7.d5. (This is the position from the 📋 Try it in Section 5.9; here, answer a different question.)

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Bf1, Bg5, Nc3, Nf3, a2, b2, f2, g2, h2, e3, c4, d5; Black Kg8, Qd8, Ra8, Rf8, Bg7, Bc8, Nf6, Nb8, c5, d6, g6, a7, b7, e7, f7, h7 — Black to move. FEN:
rnbq1rk1/pp2ppbp/3p1np1/2pP2B1/2P5/2N1PN2/PP3PPP/R2QKB1R b KQ - 0 7
The centre is closed (locked c- and d-files) and White leads in space 11 to 6. In the game Black played 7...h6 8.Bh4 g5 9.Bg3 Nh5 10.Nd2 Nxg3 11.hxg3 e6. Explain the logic of that sequence in terms of space and squares, and check it against the engine.
Answer
Black gains kingside space with tempo (...h6 and ...g5 chase the bishop), wins the bishop pair with ...Nxg3, and only then plays ...e6 to break against d5 — swapping the closed centre for an open e-file. After 12...exd5 the count is 7–12 in Black's favour. Stockfish 19 depth 20 ranks 7...h6 first (+0.26; 7...Qb6 +0.42, 7...a6 +0.43), and after 12...exd5 13.Nxd5 it is level (+0.22 at depth 24). The price was a weakened kingside (Outpost lists h5 and h6 as Black's holes after 8...g5) — Black's later kingside attack shows that the advanced g- and h-pawns were an asset in this game, not a liability.
B3. Find the tactic. Botvinnik–Capablanca, AVRO 1938, after 29...Qe7.

♟️ Position: White Kg1, Qe5, Bb2, Ng3, g2, h2, c3, d4, e6; Black Kg7, Qe7, Nb3, Nf6, c4, d5, b6, g6, a7, h7 — White to move. FEN:
8/p3q1kp/1p2Pnp1/3pQ3/2pP4/1nP3N1/1B4PP/6K1 w - - 5 30
White's centre pawns have advanced all the way to e6. Find the move that converts.
Answer
30.Ba3! — deflecting the black queen from the defence of f6 (30...Qxa3 31.Nh5+! gxh5 32.Qg5+ Kf8 33.Qxf6+, as in the game, and the e-pawn runs). Stockfish 19 at depth 20: 30.Ba3 +6.58, far ahead of 30.h4 (+3.35) and 30.h3 (+2.34). At depth 24 the root search happened to prefer 30.h4 (+4.81), but evaluating the position after 30.Ba3 at depth 24 gives +6.94 — so Ba3 is at least as strong; the two numbers differ because a deeper search from the root does not examine every move equally deeply. The strategic point: the tactic exists only because the e-pawn stands on e6 and the queen on e5 dominates the dark squares — strategy (Section 5.4) created the tactic.
B4. Build the plan. Karpov–Unzicker, Nice Olympiad 1974, after 29...Bg7.

♟️ Position: White Kg1, Qd2, Ra1, Ra2, Bb1, Ba7, Ne2, Nh2, f2, g2, c3, h3, b4, e4, d5; Black Kg8, Qe7, Ra8, Rc8, Bg7, Be8, Nc7, Nd8, c4, b5, e5, d6, g6, f7, h7 — White to move. FEN:
r1rnb1k1/B1n1qpbp/3p2p1/1p1Pp3/1Pp1P3/2P4P/R2QNPPN/RB4K1 w - - 14 30
All four central and queenside pawn pairs are locked (b-, c-, d-, e-files). White owns the a-file. What is the plan?
Answer
Open a second front on the kingside with 30.f4. Stockfish 19 depth 20: 30.f4 +1.32, 30.Bc2 +0.93, 30.Ra5 +0.84; depth 24: 30.f4 +1.24 (+1.33 at depth 24 after the move). With the queenside sealed, Black's pieces are committed there; f2–f4 opens (or threatens to open) the f-file and gains kingside space while Black cannot switch wings quickly. See Case Study 1 for what followed — 30...f6 31.f5 g5? closed the kingside and left the h5 hole.
B5. Analyze this position. Réti–Capablanca, New York 1924, after 15...Qc7.

♟️ Position: White Kg1, Qc2, Ra1, Rd1, Bb2, Bg2, Nf1, Nf3, f2, h2, a3, d3, e3, g3, c4, b5; Black Kg8, Qc7, Ra8, Re8, Bb7, Bg7, Nf6, Nf8, a5, c5, e5, b6, d6, g6, h6, f7 — White to move. FEN:
r3rnk1/1bq2pb1/1p1p1npp/pPp1p3/2P5/P2PPNP1/1BQ2PBP/R2R1NK1 w - - 1 16
Réti played 16.d4. Before looking: is it the right moment? Compare it with a quiet move such as 16.Nh4.
Answer
Stockfish 19 says the strike is premature: depth 20 ranks 16.Nh4 (+0.31), 16.Re1 (+0.30) and 16.N1d2 (+0.27) first; after 16.d4 it gives −0.92 (depth 20) / −0.80 (depth 24) because 16...Be4 hits the queen and the c4 pawn hangs. The quiet 16.Nh4 trades off Black's b7-bishop (the PV goes ...Bxb7 Qxb7 later) and keeps the position balanced. Réti won because Capablanca erred later (18...N6d7 and 20...Qxc4 at depth 16), not because 16.d4 was strong. The plan — fix the queenside, then take the centre — is sound; the timing needed one more preparatory move.
B6. Find the key square. Karpov–Kasparov, World Championship 1985, game 16, after 15.Qd2.

♟️ Position: White Kg1, Qd2, Ra1, Rf1, Bf3, Bg5, Na3, Nc3, a2, b2, f2, g2, h2, d5; Black Kg8, Qd8, Ra8, Re8, Bc5, Bf5, Nb4, Nf6, a6, b7, f7, g7, h7 — Black to move. FEN:
r2qr1k1/1p3ppp/p4n2/2bP1bB1/1n6/N1N2B2/PP1Q1PPP/R4RK1 b - - 10 15
White has no c- or e-pawn. Which square is the key square for Black's knight, and in what order should Black play?
Answer
d3 — a hole (no white c- or e-pawn can ever cover it). But first 15...b5!, taking c4 from the a3-knight, the white piece best placed to challenge a knight on d3; then 16...Nd3. Stockfish 19 depth 20: 15...b5 −0.22, 15...h6 +0.00, 15...Nd3 +0.15; depth 24: 15...b5 −0.16. The immediate 15...Nd3 allows 16.Nc4 with play against the knight's support. Prepare the square, then occupy it.
B7. Analyze this position. Spassky–Fischer, World Championship 1972, game 13, after 26.Kh2.

♟️ Position: White Kh2, Qc3, Rd1, Re1, Bh4, Nd4, Nc5, b2, c2, h3, f4, g4, e5; Black Kg8, Qc8, Ra8, Re8, Bd5, Bg7, Nb6, a4, e6, g6, h6, b7, c7, f7 — Black to move. FEN:
r1q1r1k1/1pp2pb1/1n2p1pp/2NbP3/p2N1PPB/2Q4P/1PP4K/3RR3 b - - 1 26
White's space count is 14 to 5. List White's holes; then find Black's most forcing way to exploit White's over-extension.
Answer
Outpost lists seven White holes: e3, f3, g3, h3, e4, f4 and h4 — everything behind the advanced e-, f- and g-pawns — and flags a light-square weakness (White has no light-squared bishop). Stockfish 19 depth 20: 26...a3! (−2.13), 26...c6 (−1.67), 26...Nd7 (−1.46, Fischer's move); depth 24: 26...a3 (−2.10), and after 26...Nd7 −1.56. The a-pawn break 26...a3 27.bxa3 leaves White's queenside pawns isolated and opens the a-file — Black attacks the over-extended side on the wing where White has no pawns. Fischer's 26...Nd7 (heading for the centre and preparing ...c5) was also strong; both moves attack White's space from outside it.
B8. Find the tactic. Sämisch–Nimzowitsch, Copenhagen 1923, after 20.e4.

♟️ Position: White Kh2, Qd1, Rc1, Rg1, Bd2, Bg2, Nb1, a2, b2, f2, g3, h3, d4, e4; Black Kg8, Qd7, Ra8, Rf8, Bb5, Bd6, Nh5, b4, d5, f5, a6, e6, g7, h7 — Black to move. FEN:
r4rk1/3q2pp/p2bp3/1b1p1p1n/1p1PP3/6PP/PP1B1PBK/1NRQ2R1 b - - 0 20
White has just struck in the centre with 20.e4, attacking f5 and d5. Black's knight on h5 is attacked by nothing yet, but the queen on d1 eyes it. What did Nimzowitsch play?
Answer
20...fxe4!, giving up the knight: 21.Qxh5 Rxf2 — the rook lands on White's second rank, the e4 pawn controls d3 and f3, and Black's light-squared bishop will reach d3. Stockfish 19 depth 20: 20...fxe4 −3.18, 20...Nxg3 −0.40, 20...g6 +0.47; depth 24: 20...fxe4 −3.28 (−2.98 at depth 24 after the move). The sacrifice is a square sacrifice: Black gives a piece to own the light squares in White's camp, which is exactly what the final position of the game (Section 5.7) shows.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Database research (⭐⭐). Re-run the middlegame bucket table of Section 5.3 (code/02_space_data.py, section 2) for Lichess rapid games only (filter speed == "rapid" on the feature cache). Output: a table with columns bucket, n, mean_eval, adj, score. Does the slope from the ≤ −6 bucket to the ≥ +6 bucket look steeper or flatter than for all Lichess speeds?
C2. Database research (⭐⭐). For the opening you play, select its games from chessdata.broadcast_games() by the opening column, replay 500 of them to ply 20 with space.space_count, and print the mean and the 10th/50th/90th percentiles of the space difference. Expected shape: one row per family, e.g. King's Indian Defense n=500 mean +3.9 p10/p50/p90 = −1/+4/+8 (your numbers will differ by sample). Compare with the Section 5.5 table.
C3. Engine analysis / definition test (⭐⭐⭐). Write space_count_wide(board, colour) that counts files b–g instead of c–f. Recompute the correlation between the space difference and the stored evaluation for OTB near-level middlegames (|eval| ≤ 200 cp, human games, level material) with both definitions. Output: two lines, r(c-f) = …, r(b-g) = …, n = …. Does widening the definition help or hurt? Explain why in chess terms.
C4. Database research (⭐⭐⭐). Mobility versus space: for the same positions as C3, compute the difference in legal-move counts (structures.mobility(board, colour)) and correlate it with the evaluation. Which measure tracks the engine more closely in closed centres, and which in open ones? Output: a 2 × 5 table (measure × centre type) of correlations with n.
C5. Engine analysis (⭐⭐⭐). Take 30 closed-centre middlegame positions from positions_sample (OTB, |eval| ≤ 100, level material, random_state = 5). Evaluate each with engine.evaluate at depths 14 and 20 (use analyse_games_parallel-style batching or a single engine with caching; at most 4 processes). Does the space difference explain more of the depth-20 evaluation than of the depth-14 one? Output: two correlations and a scatter plot saved to images/.
C6. Database research (⭐⭐⭐). The weak-colour-complex effect in Section 5.7 compared positions where one side has a weak complex and the other does not. Split those positions further by whether the opponent still has a bishop of the weak colour. Hypothesis: the complex hurts more when the opponent has the bishop to exploit it. Output: rating-adjusted score and mean eval for the two groups, with n and standard errors.
Hints for Part C
- The feature cache
code/ch05_position_features.parquethas one row per position withspace_w,space_b,holes_w/b,outpost_holes_w/b,weak_complex_w/b,center,npm; joinchessdata.positions_sample()onsourceandgame_idto get FENs. - Remove bot, engine and online games exactly as
02_space_data.pydoes. - For C3 and C4, re-use
ols_slopeandfisher_cifrom02_space_data.py. - For C5 cache your engine results; with depth 20 on 30 positions expect a few minutes.
Part D — Judgment & Transfer ⭐⭐⭐
D1. A 1250-rated Lichess player asks whether the King's Indian is "too passive" for their level. Using the band table in Section 5.5, answer with numbers — and then say what the numbers cannot tell them.
Model answer
At 1200–1399 Black scores 50.1% with the King's Indian (n = 1,666) against 47.4% after 1.e4 e5 and 46.4% after 1.d4 d5 in the same band (balanced games). So it is not a losing choice at that level. What the numbers cannot tell them: who chooses the King's Indian (perhaps stronger-for-their-rating players), whether they will understand the ...e5/...f5 plans, or how it fares in their time control. The data says "it's viable", not "it's right for you".
D2. You have a +9 space edge in a fixed centre and Stockfish says +0.55 (Giri–Firouzja after 11.cxd5). Your opponent is rated 150 points below you. How do you play — and how would you play against a much stronger opponent?
Model answer
Against a weaker player: keep the pieces on, avoid freeing exchanges, and make useful waiting moves; the cramped side must find the right break (here ...c5 or ...f5) at the right moment, and the more decisions you leave them, the more chances they have to choose wrongly. Against a stronger player: the same in principle, but be alert to the moment the break comes — prepare for ...c5 (Black played 16...c5 in the game) so that the position opens on your terms. In both cases remember that +0.55 means a small edge, not a winning one.
D3. "The cramped side should exchange pieces." Give two situations where following this advice would be a mistake.
Model answer
(1) When the exchange leads to an endgame in which the space edge becomes a king-entry advantage — with fewer pieces the side with more room can march its king in (space turns into king activity; see Chapter 15). (2) When the piece you exchange is your good piece and the opponent's is the bad one — trading your active knight for their passive bishop removes your only counterplay. Also: trading when you have a ready-made pawn break may waste the tempo that the break needed.
D4. Section 5.6 showed that the correlation between holes and the evaluation collapsed once material was held level. Design a better study of "do holes matter?" — what would you hold fixed, and what outcome would you measure?
Model answer
Hold fixed: material (pawn count and piece material), game phase, rating band, and ideally the opening family (so structures are comparable). Better still, use within-game changes: find positions where a pawn move created a new hole and compare the evaluation before and after, or compare positions where the hole is reachable by an enemy knight in two moves with positions where it is not. Outcome: the engine evaluation at a fixed depth (less noisy than results) plus the rating-adjusted score as a check.
D5. An engine shows 0.00 in a closed King's Indian where you are Black with less space. A friend says "it's equal, so it doesn't matter which side you are on." Do you agree?
Model answer
No. Equal with perfect play is not equal in practice: the cramped side's moves are harder to find (one correct break among many plausible waiting moves), so the practical chances often favour the side with space — unless you are the one who knows the breaks. Choose such positions only if you know the plans; then the engine's 0.00 is your friend, because your opponent may overestimate their space.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1 (with Chapter 2). In the French Advance (Section 5.1 diagram), Chapter 2's rule says "attack the base of the chain". Which pawn is the base, which Black pawn move attacks it, and how does that move change the space count?
Answer
The base is d4; Black attacks it with ...c5 (and later ...cxd4). With space.space_report, Black's count goes from 6 after 3.e5 to 8 after 3...c5 (White stays at 11): Black gains d4 (on Black's own 5th rank, now attacked by the c5 pawn) and c7 (vacated by the pawn). Attacking the chain is also how the cramped side wins back space. (Try it with space.space_report after 1.e4 e6 2.d4 d5 3.e5 c5.)
M2 (with Chapter 3). Chapter 3 measured outpost knights; this chapter measured ready-made outposts in the defender's camp. Explain why these are two views of the same squares, and why the Karpov–Kasparov knight on d3 counts as a hole but not as a ready-made outpost under the book's rules.
Answer
An outpost (attacker's view) is a square in the enemy half supported by your pawn and never attackable by an enemy pawn; a ready-made outpost (defender's view) is one of your holes that an enemy pawn already supports. On d3, Black's knight was supported by the f5-bishop, not by a pawn — so d3 is a White hole, but not a pawn-supported outpost.
M3 (with Chapter 4). In Case Study 1, 31...g5 created a hole on h5 next to Black's king. Using Chapter 4's ideas about king shelter, explain why a hole there was worse than a hole on the queenside.
Answer
Pieces arriving on h5 (bishop, then knight) came with threats against the king (f7, g7, f6), so the defender could not ignore them; the king's own pawn shelter could not cover the hole, and the king could not move away from it quickly. A queenside hole would have required many moves to matter.
M4 (with Chapter 1). Convert the Section 5.8 slope (about 5 cp per unit of space in closed centres) into win %: what is the change in win % (Lichess model) from 0 cp to +25 cp (a five-square edge)? Compare with the 1.2 cp-per-unit slope in open centres.
Answer
With the book's win-% formula, win_pct(0) = 50 and win_pct(25) ≈ 52.3; win_pct(6) (five squares × 1.2 cp) ≈ 50.6. A five-square edge is worth about 2.3 win-% points in a closed centre and about 0.6 in an open one. (Run chessdata.win_pct(25) and chessdata.win_pct(6) to check.)
M5 (with Chapters 2 and 3). Combine structure.py (Chapter 2), activity.py (Chapter 3) and space.py on the Botvinnik–Capablanca position after 18...Nb3. Which module's output best explains why the engine gave White +2.79 although the space count favoured Black?
Answer
None of the static reports explains it alone; the closest is the pawn-structure view (Chapter 2) — White's central majority (c3, d4, e3, f3 against d5, c4) is mobile toward Black's king — combined with this chapter's "count today, count tomorrow" point. A useful extension for Outpost: add a "pawn mobility" feature (how many central pawns can advance safely) to space.describe.
Part E — Research & Extension ⭐⭐⭐⭐
E1. Space trajectories. For 5,000 OTB classical games, compute the space difference after every ply up to ply 60. Cluster the trajectories (k-means on the 60-dimensional vectors, random_state=0) and describe the clusters in chess terms (e.g., "hypermodern: big early gap that shrinks", "closed squeeze: stable +3"). Do the clusters differ in rating-adjusted score? Write up with one chart and one example game per cluster.
E2. A learned space weight. Fit a regression of the stored evaluation on space difference, centre type, non-pawn material and their interactions (near-level middlegames, OTB). Report the fitted value of one unit of space in each centre type at full material and at half material, with confidence intervals. Compare your fitted weights with the slopes in Section 5.8 and discuss whether "space × pieces on the board" is a better feature than space alone for Outpost's planner.
E3. Colour complexes, properly. The book's weak-complex rule ignores whether the opponent can use the weak colour. Define a stronger rule (e.g., ≥ 3 holes of a colour, no own bishop of that colour, and the opponent has a bishop of that colour or a knight within two moves of one of the holes), measure its frequency and its rating-adjusted effect with material held level, and compare with the simple rule. Present one real game from the broadcast database that your rule flags.