Exercises — Chapter 3: Piece Activity

Difficulty: ⭐ concept check · ⭐⭐ apply at the board or in code · ⭐⭐⭐ judgment and multi-step analysis · ⭐⭐⭐⭐ open-ended research.

All engine evaluations are Stockfish 19 from White's point of view, in pawns, at the stated depth, produced by code/07_exercise_positions.py (positions) or the chapter's other scripts. All games are loaded from the book's databases.


Part A — Concepts ⭐

A1. Define mobility, activity % and activity score as this chapter uses them. Why are kings and pawns left out of the activity score?

Answer

Mobility = the number of legal moves a piece has, counted as if its side were to move. Activity % = 100 × mobility ÷ the piece's maximum on an empty board (knight 8, bishop 13, rook 14, queen 27). Activity score = the average activity % of a side's knights, bishops, rooks and queens. Kings and pawns are excluded because their "freedom" means something different: a king with many moves in the middlegame is usually unsafe, and pawn moves are mostly irreversible structural decisions, not activity.

A2. State the book's definition of an outpost. Which part of it is the most important, and why?

Answer

A square in the enemy half (White: ranks 5–7; Black: ranks 4–2), defended by one of your pawns, that no enemy pawn can ever attack. The key clause is "no enemy pawn can ever attack it": a pawn is the cheapest attacker, so a knight that can be hit by a pawn will be driven away with tempo. Pawn protection matters too — it means the opponent cannot just win the piece with pieces — but the permanence is what makes an outpost an outpost.

A3. True or false, with a reason: "A knight on the rim is always a mistake."

Answer

False. In OTB games at move 15 a side with a knight on the a- or h-file scores 1.8 rating-adjusted points below expectation (n = 47,016) — a mild penalty, not a disaster. Some rim knights are passing through (Na4–c5) or attacking (Nh4–f5). The rule is a dimmer switch: a rim knight needs a reason.

A4. Explain, using the geometry of pawn chains, why Black's light-squared bishop is "bad" in the French Defence Advance Variation.

Answer

After 1.e4 e6 2.d4 d5 3.e5, Black's d5- and e6-pawns stand on light squares and are fixed by White's d4- and e5-pawns, so they cannot leave those squares. The c8-bishop travels on light squares and its natural diagonals (c8–h3 via e6, and the long a8–h1 diagonal via d5) are blocked by its own pawns. Meanwhile the dark squares in front of Black's pawns (e5, d4) are White's — the bad bishop cannot contest them.

A5. Why does a rook on the seventh rank attack pawns more effectively than a rook attacking along a file?

Answer

Pawns defend each other diagonally from behind. Attacked frontally on a file, a pawn is usually defended by its neighbour; attacked from the side along a rank, no pawn can defend it. On the seventh, the rook also confines the enemy king to the back rank.

A6. Why did queen mobility correlate less with the engine evaluation than rook mobility in the chapter's database study?

Answer

Queens almost always have many legal moves, so the count varies little between good and bad positions (r = 0.178 OTB, 0.142 Lichess in material-level middlegames). Rooks are often buried behind pawns or on closed files, so their mobility varies widely and lines up with the evaluation (r = 0.266 OTB). For the queen, what matters is whether it can be harassed with tempo, which a move count doesn't capture.

A7. What is a "positional exchange sacrifice"? Give the two necessary conditions the chapter emphasises.

Answer

Giving a rook for a minor piece not for a direct attack but for a lasting positional gain — a dominant minor piece, a wrecked enemy structure, or both. Conditions: (1) the compensation must be permanent — an outpost no pawn can ever attack, a structure that can't be repaired; (2) the opponent's extra rook must lack open files, which usually means keeping the position closed and avoiding exchanges.

A8. "Trade your bad pieces for the opponent's good ones." Restate the question the chapter says to ask before every exchange.

Answer

"Which pieces will be left?" — name the piece of yours that remains after the trade and ask whether it is good or bad in the structure that remains.


Part B — Positions ⭐⭐

For each position: work it out with the diagram only, write down your move and a one-sentence reason, then open the solution.

B1. Build the plan — Polgar–Anand, Hoogovens 1998. White to move (move 30).

Polgar–Anand, White to move

♟️ Position: White Kg2, Qe2, Rd1, Ne3, b2, f2, h2, b3, g3, c4, e4; Black Kg7, Qe6, Rc6, Bd8, b4, a5, e5, d6, g6, f7, h7 — White to move. FEN: 3b4/5pkp/2rpq1p1/p3p3/1pP1P3/1P2N1P1/1P2QPKP/3R4 w - - 10 30

Where does White's knight belong, and why can Black never remove it with a pawn?

Solution

30.Nd5. Black has no c-pawn and the e-pawn has already advanced to e5, so no black pawn can ever stand on c6 or e6 to attack d5 again. White's c4- and e4-pawns defend d5. Stockfish 19 (depth 20): 30.Nd5 +0.49, 30.Ra1 +0.47, 30.Rd5 +0.47. The engine sees the moves as close — the knight jump is not a tactic — but only Nd5 creates a permanent asset: Black's bishop on d8 has pawns on d6 and e5 (dark squares) in its way, and a knight on d5 can only be challenged by that bishop's absent light-squared colleague. Judit Polgar played 30.Nd5, the knight stayed there for 42 plies, and she won. Activity at move 30: White 59.3, Black 42.0.

B2. Find the right recapture — Hou Yifan–Padmini Rout, Women's World Team Championship 2025. White to move (move 21).

Hou Yifan–Padmini, White to move

♟️ Position: White Ke1, Qd1, Ra1, Rh1, Ne3, c2, f2, b3, d3, g3, e4, h4; Black Kh8, Qb8, Ra7, Rf8, Bd5, Bd8, c5, e5, a6, d6, f7, g7, h7 — White to move. FEN: 1q1b1r1k/r4ppp/p2p4/2pbp3/4P2P/1P1PN1P1/2P2P2/R2QK2R w KQ - 0 21

Black's bishop on d5 can be taken with the knight or the pawn. Which, and why?

Solution

21.Nxd5! Stockfish 19 (depth 20): 21.Nxd5 +0.93, 21.exd5 −0.07, 21.f4 −5.88. Recapturing with the knight puts it on d5, an outpost: Black's c- and e-pawns are on c5 and e5 and can never attack it, and White's e4- and c-pawn (via c4) can support it. Recapturing with the pawn would give White a passed-looking d5-pawn but let Black's pieces use e5/c5 freely and leave White's knight without a home. Hou Yifan took with the knight, it stood on d5 for 52 plies — the longest outpost stay in her classical games in the broadcast data — and she won. (Note how close to a full pawn the difference is: the choice of recapture decides who has the good minor piece.)

B3. Analyze this position — Vitiugov–Abdusattorov, 2025. Black to move (move 29).

Vitiugov–Abdusattorov, Black to move

♟️ Position: White Kg2, Re1, Re2, Nf2, a2, b3, f3, g3, c4, h4; Black Kd7, Re8, Rf8, Nc6, a3, c5, f5, d6, e6, g6 — Black to move. FEN: 4rr2/3k4/2npp1p1/2p2p2/2P4P/pP3PP1/P3RNK1/4R3 b - - 1 29

Find Black's best square for the knight, and the pawn move that will make it permanent.

Solution

29...Nd4, followed by ...e5. Stockfish 19 (depth 20): 29...Nd4 −1.00, 29...e5 −0.71, 29...Nb4 −0.12. On d4 the knight hits e2, b3, f3 and c2; the c5-pawn already defends it, and after ...e5 it has a second pawn guard. White's c4-pawn has passed d4 and White's e-pawn is gone, so no white pawn can ever attack the square. The game continued 29...Nd4 30.Rd2 e5 31.Nd1 f4 32.g4 Rh8 33.Rh1: the knight stayed on d4 for 36 plies and Nodirbek Abdusattorov won. Note the order: the knight first (it attacks the e2-rook with tempo), the support pawn second.

B4. Analyze this position — Van Foreest–Giri, Tata Steel Masters 2026. White to move (move 33).

Van Foreest–Giri, White to move

♟️ Position: White Kb1, Rd1, Rg1, Be3, Ng5, b2, c2, h2, a4, d5; Black Kg8, Rc8, Rf8, Be7, Ne8, b4, a5, e5, d6, g7 — White to move. FEN: 2r1nrk1/4b1p1/3p4/p2Pp1N1/Pp6/4B3/1PP4P/1K1R2R1 w - - 2 33

Which square is the hole in Black's position, and how big is the engine's preference?

Solution

33.Ne6. e6 is on Black's third rank, defended by White's d5-pawn; Black's d-pawn is on d6 and the f-pawn is gone, so no black pawn can ever challenge it. From e6 the knight attacks the f8-rook and the g7-pawn and covers c7 and d8. Stockfish 19 (depth 20): 33.Ne6 +0.28, 33.Ne4 +0.05, 33.h4 0.00. The engine's edge is small — Black's position is solid — but Jorden van Foreest's knight stayed on e6 for 26 plies and he beat Anish Giri. Activity at move 33: White 55.6, Black 40.6. This is a good example of the chapter's caution: an outpost favours you; it rarely wins by itself.

B5. Find the tactic — Erigaisi–Sindarov, Tata Steel Masters 2026. Black to move (move 29).

Erigaisi–Sindarov, Black to move

♟️ Position: White Kf1, Qg4, Rd1, Nc5, Ne5, b2, f2, g2, h3, a4; Black Kg8, Qe7, Rf8, Nd4, b6, h6, a7, f7, g7 — Black to move. FEN: 5rk1/p3qpp1/1p5p/2N1N3/P2n2Q1/7P/1P3PP1/3R1K2 b - - 0 29

Black's knight on d4 looks magnificent. Count material first. What must Black play?

Solution

29...bxc5. White is a knight up at this moment (two knights against one), so before admiring the d4-knight Black must recapture. Stockfish 19 (depth 20): 29...bxc5 −0.01; the "active" alternatives 29...Nb3 (+6.43) and 29...Re8 (+6.65) leave Black a piece down. The game went 29...bxc5 30.Re1 Qb7 31.Qe4 Qa6+ 32.Kg1 Qxa4, and Javokhir Sindarov's knight then held d4 for 20 plies; he won. Lesson: activity is a factor within a material count, not a replacement for counting.

B6. Find the only move — Ju Wenjun–Zhu Jiner, Norway Chess Women 2026. White to move (move 28).

Ju Wenjun–Zhu Jiner, White to move

♟️ Position: White Kg1, Qc3, Rd1, Re1, Ne4, a2, b2, g2, h2, d4, e5; Black Kg8, Qe7, Rd5, Rd8, Ne6, c6, h6, a7, b7, f7, g7 — White to move. FEN: 3r2k1/pp2qpp1/2p1n2p/3rP3/3PN3/2Q5/PP4PP/3RR1K1 w - - 3 28

Black's rooks and knight all hit d4. Find the move that holds — and explain it with this chapter's ideas.

Solution

28.Nd6! Stockfish 19 (depth 20): 28.Nd6 0.00, 28.Qg3 −1.42, 28.Qe3 −3.93. The knight jumps to an outpost (protected by the e5-pawn; Black's c- and e-pawns can never attack d6) where it does three jobs: it cuts the d-file between Black's two rooks, so the d8-rook no longer backs up an attack on d4; it attacks b7 and f7; and it cannot be driven away. The next-best moves cost at least 1.4 pawns. Ju Wenjun played 28.Nd6, the knight stayed 26 plies, and the game was drawn — an outpost used for defence.


Part C — Data & Code ⭐⭐–⭐⭐⭐

C1. Database research ⭐⭐. Modify code/02_activity_vs_eval.py so that section A also reports the correlation for bishop mobility only in positions where each side has exactly one bishop. Input: activity_features.parquet. Expected output: a table with columns source, phase, n, r_bishop for the four source × phase groups; compare with the 0.173 (OTB middlegame) from the chapter.

C2. Database research ⭐⭐. The chapter's bad-bishop label needs both a high index (≥ 0.6) and at least two fixed pawns. Rerun section C with three alternative definitions: (a) index ≥ 0.6 only; (b) index ≥ 0.7 and ≥ 2 fixed; (c) at least three fixed pawns on the bishop's colour. Expected output: one table per definition with n, score, lo, hi, adj for middlegame and endgame. Which definition separates good from bad bishops most clearly in endgames, and how much does n shrink?

C3. Engine analysis ⭐⭐⭐. Run the relocation map of code/05_knight_value_map.py on the Vokhidov–Inarkiev position after 19.Nd5 (FEN in Case Study 1), but for White's knight. Expected output: the best and worst six squares, the median change and the share of squares worse than d5, plus a figure. Is d5 the engine's best square for that knight? What does the answer suggest about the difference between "the best square" and "a permanent square"?

C4. Engine analysis ⭐⭐⭐. Add a fourth swap to the swap test: replace the knight by a bishop of the same colour square on the same square. For Karpov–Kasparov after 17...h6, is a bishop on d3 better or worse than the knight? Expected output: one extra line in the swap-test printout; one paragraph explaining the result in terms of which squares each piece controls from d3.

C5. Database research ⭐⭐⭐. In the elite outpost search (code/06_modern_games.py), the knight's side did worse when the outpost stay lasted 12+ plies (won 20.0%, lost 26.7%, n = 135). Test one explanation: compute the number of pawns still on the board at the start of the stay and compare long and short stays. Expected output: median pawn count by stay-length group. If long stays come in blocked positions, what do you expect to see?

C6. Database research ⭐⭐. Using data/reference/heatmaps_bishops.csv, find the three squares (owner orientation, OTB, both colours, ≥ 500 occurrences, ranks 1–7) with the highest and lowest owner_adj for bishops. Expected output: a six-row table. Do your top squares agree with the "bishops on long open diagonals" principle?

C7. Code ⭐⭐. Write a function worst_piece(board, color) for Outpost that returns the piece with the lowest activity % (ignoring pieces with an activity % above 60) together with the legal move that raises its activity % the most. Test it on the Karpov–Kasparov position after 17...h6 for White. Expected output: something like ('Rf1', 7.1, 'Rfe1', ...) — report what your function actually prints and whether you agree with it as a chess player.


Part D — Judgment & Transfer ⭐⭐⭐

D1. Your 1250-rated student loves to put a knight on e5 as early as move 8 in every game, and loses it to ...d6 or ...f6 half the time. Write the three-sentence explanation you would give, using this chapter's definition and one statistic.

Sample answer

"A square is only an outpost if no enemy pawn can ever attack it — check the d- and f-pawns before you jump to e5. Knights that can be kicked by a pawn lose time, and in our data a knight on a real outpost goes with a 3.8-point rating-adjusted edge in OTB games (n = 11,206), while a merely advanced knight gains nothing if it is chased. First fix the pawns (or wait for ...d6/...f6 to be impossible), then put the knight there."

D2. At 2000+ level, the chapter's data showed outpost knights still help, and the elite search showed long outpost stays don't guarantee wins. Reconcile these two findings in a paragraph.

Sample answer

At move 15, an outpost knight goes with better results because it usually reflects a structural concession by the opponent (and the side with the knight was already better on average, +50 cp OTB). But once established, whether it wins depends on whether it has targets. A strong opponent tolerates an outpost knight for twenty moves only when it isn't hurting him — in blocked positions or while he builds play elsewhere; when it matters, he exchanges it. So "outpost = good" is true on average, while "longer stay = better" is not, because duration measures the opponent's indifference as much as the knight's power.

D3. Engine versus human: Stockfish preferred 30.Rh8+ to Capablanca's 30.Rh7 by about 0.14 pawns at depth 24. Should a student study Capablanca's move or the engine's? Argue both sides briefly and decide.

Sample answer

For the engine's move: it is objectively a little stronger, and 30.Rh8+ Kg7 31.Rd8 wins material concretely. For Capablanca's: 30.Rh7 embodies a principle (rook to the seventh, cut the king off) that transfers to thousands of positions, and the difference (+0.80 vs +0.66) is too small to matter for a human. Decision: study Capablanca's move to learn the pattern, then check the engine's to learn the calculation — and notice that both moves share the idea of activating the rook immediately.

D4. A 1600 player says, "The engine says my position is equal, but my pieces feel terrible." Using the Vokhidov–Inarkiev case, explain why both statements can be true and what the player should do.

Sample answer

In Vokhidov–Inarkiev the engine said +0.01 at move 25 while White's activity advantage was already +21.7: Black had no concrete weakness yet, but had no active plan either. Equal by evaluation can still mean "only one side can make progress". The player should look for exchanges that remove the opponent's best piece or free their worst one, and aim to open a file or break with a pawn before the opponent opens a second front.


Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐

M1 (with Chapter 2, Pawn Structure) ⭐⭐. For each structure label from Chapter 2 — IQP, Carlsbad, French chain — name one outpost square each side typically gets, and say which pawn move creates or removes it.

Answer

IQP (White pawn d4): White's outposts e5 and c5 (Black's d-pawn is gone, so no black pawn can hit them once ...f6/...b6 are avoided); Black's outpost d5, in front of the isolani (White's c- and e-pawns are gone). Carlsbad (White d4, Black c6/d5): Black's e4 (White's f-pawn and d-pawn can't touch it once f2–f3 isn't played) and White's c5 after the minority attack exchanges on c6; e5 for White once Black's f-pawn advances. French chain (d4/e5 vs d5/e6): White's d4 and f4 squares behind the chain; Black's f5 and the c4/b4 squares if White's c- and b-pawns advance. The pattern: outposts appear where the opponent's pawns have advanced past or disappeared.

M2 (with Chapter 1, How to Think About Chess) ⭐⭐. Chapter 1's strategic evaluation runs structure → activity → king safety → critical factor. Apply it in four lines to the Reshevsky–Petrosian position after 28...Nd5.

Answer

Structure: White has a blocked centre (d4/e5 against c4/e6), Black a protected passed c-pawn and the permanent d5-square. Activity: Black's knight on d5 and bishop on g6 dominate the light squares; White's bishop on b2 is blocked by its own c3/d4 pawns; White's rooks have no open file (activity 34.7 vs 52.0). King safety: both kings are safe; Black's light-squared control around White's king is a long-term plus. Critical factor: whether White can open a file for the extra rook — he can't, so the material advantage is neutralised: 0.00 at depth 24.

M3 (with Chapter 1) ⭐⭐⭐. Convert three of this chapter's evaluations into Lichess win percentages using Chapter 1's formula (win% = 50 + 50·(2/(1+e^(−0.00368208·cp)) − 1)): +1.10 (Vokhidov–Inarkiev after 19.Nd5), −1.97 (Karpov–Kasparov after 17...h6), and −0.13 (the median eval of OTB exchange-down sides with an outpost and an extra pawn). What does the third number mean in plain language?

Answer

+110 cp → 50 + 50·(2/(1+e^(−0.405)) − 1) ≈ 60.0% for White. −197 cp → ≈ 32.6% for White (67.4% for Black). −13 cp → ≈ 48.8% for the exchange-down side. In plain language: an exchange-down side with an outpost minor and an extra pawn is, by the median evaluation, almost exactly level — the engine's "winning chances" are within about one percentage point of even, matching its 47.9% actual score (n = 139).

M4 (with Chapter 2) ⭐⭐⭐. Chapter 2 found the IQP side does worse once queens are off. This chapter found outpost compensation shrinks in endgames. State a single principle that explains both, and predict what happens to the "bad bishop" effect when queens are traded.

Answer

Principle: dynamic factors (activity, initiative, outposts) depreciate as material comes off; static factors (pawn weaknesses, the exchange, bad bishops) appreciate. The IQP's compensation is piece activity; the outpost's compensation for the exchange is activity; both fade as pieces are traded. Prediction: the bad-bishop effect should grow when queens come off — consistent with the chapter's endgame numbers (good vs bad bishop: +7.2 OTB and +17.7 Lichess rating-adjusted in endgames vs +5.9 and +0.9 in middlegames).


Part E — Research & Extension ⭐⭐⭐⭐

E1. Calibrating the activity score. The activity score weights every piece equally (a 50% knight counts the same as a 50% rook). Using activity_features.parquet, fit a linear model of the evaluation on the per-piece-type mobility differences (N, B, R, Q) in material-level middlegames, separately for OTB and Lichess. Use the coefficients to build a weighted activity score and compare its correlation with the evaluation to the unweighted score's 0.367 (OTB). Report coefficients with standard errors and discuss whether the weights make chess sense.

E2. Outposts over time. Using game_features and the broadcast movetext, measure for each game the ply at which the first outpost knight appears (if any), and whether the opponent exchanged it within 6 plies. Does early exchange of an outpost knight go with a better result for the opponent? Compare with Karpov–Kasparov's 17.d6 lesson ("challenge it immediately"). Keep the analysis under five minutes with at most four worker processes.

E3. Bad bishops by opening. Split the good-vs-bad bishop endgame result by the ECO family of the game (French C00–C19, King's Indian E60–E99, Caro-Kann B10–B19, others). Does the French's famous bad bishop show up as a measurably larger penalty? State your sample sizes and intervals, and say clearly what you cannot conclude.