60 min read

Bled, Zagreb and Belgrade, 1959: the Candidates tournament that decided who would challenge Botvinnik. In

Chapter 12 — Attack and Defense: The Dynamics of the Middlegame — When to Press, When to Hold, and When to Counterattack

Bled, Zagreb and Belgrade, 1959: the Candidates tournament that decided who would challenge Botvinnik. In round 26 the most feared attacker of the era, Mikhail Tal, had White against the most feared defender, Tigran Petrosian. On move 12 Tal gave up a bishop on e6 to tear open the black king's position; on move 13 his knight landed on e6 itself; by move 20 Tal had four pawns for a rook, his queen was on h6, his knight on c7 was forking Black's rook — and Petrosian's king was standing on f7 with almost nothing around it. This is the position, with White to move:

Tal–Petrosian, Candidates 1959, after 20...Qc5

♟️ Position: White Kf1, Qh6, Nc3, Nc7, a2, b2, c2, e4, g2, g3, h2; Black Kf7, Qc5, Ra8, Bc8, Nc4, a6, b7, g5 — White to move. FEN: r1b5/1pN2k2/p6Q/2q3p1/2n1P3/2N3P1/PPP3PP/5K2 w - - 1 21

Count the material and White looks fine: the knight on c7 attacks the rook on a8, so White is about to be the exchange up. Count the attackers and White looks even better: queen and two knights against a king with one pawn to hide behind. Tal took the rook, 21.Nxa8. And the game was over in three moves — a draw. Petrosian's knight, which had quietly travelled from e5 to c4, jumped to d2 with check; his bishop joined with ...Bg4+; and his queen, which a moment ago looked like a passive defender on c5, chased the white king up the board: 21...Nd2+ 22.Ke2 Bg4+ 23.Kd3 Qc4+ 24.Ke3 Qc5+, perpetual check.

What does the engine think? Stockfish 19 rates the position in the diagram +0.80 (Stockfish 19, depth 24) — White is better — but only if White plays 21.Qh7+, a check that keeps the initiative before grabbing anything. The natural capture 21.Nxa8 scores +0.00 (Stockfish 19, depth 24): the moment White spends a tempo on material, Black's counterattack arrives first and the result is a perpetual check. Two moves, eight tenths of a pawn apart, and the difference is not material at all. It is time.

This chapter is about that difference. Attack and defence in the middlegame are not mainly about who has more pieces. They are about dynamics: who has the initiative, whose pieces are closer to the action, and whether an advantage is the kind that lasts (a better pawn structure, an extra pawn) or the kind that evaporates if you do not use it (a lead in development, an open file aimed at the king, a tempo). We will derive the four classical conditions for an attack and test them on real games; learn the defender's toolkit from Lasker and Petrosian, and from a 2026 game in which Gukesh's attack bounced off a king that had walked to f1; measure, in more than 200,000 real games, how much a development lead is worth at each level; and count how often the side that is clearly worse — two pawns down by the engine's reckoning — still saves the game. The answer to that last question will change how you play bad positions.

♟️ Improver Track: Read 12.1, 12.4, 12.5 and 12.9 for the chess and do every 📋 box. The decision checklist in the Chapter Summary is the part to keep next to your board.

📊 Analyst Track: Sections 12.2, 12.6, 12.7 and 12.8 hold the data: development leads by band, dynamic compensation in 10,160 real games, comebacks from a stable −2, and how Stockfish's verdict moves with depth in dynamic positions. Read the "limits" paragraphs closely.

🏆 Competitor Track: 12.3–12.5 are your practical core: when to sacrifice to open lines, which defensive technique fits which attack, and why the counterattack is so often the best defence. Case Study 1 is a race from the 2026 Women's Candidates.

💻 Developer Track: The Project Checkpoint adds outpost/dynamics.py — attack conditions, static vs dynamic factors, a defender's-move classifier, and the "stable −2" and "compensation" episode detectors used in this chapter's data sections.


12.1 The Four Conditions for an Attack

An attack on the king is the most forcing plan in chess, and the most expensive one to get wrong. Commit your pieces to the kingside and fail, and you are left with pieces on the wrong wing, pawns that have advanced past the point of return, and a king of your own that you stopped watching. So the first question is not how to attack but whether the position allows it.

The principle. An attack on the king succeeds when the attacker can bring more force to the king's neighbourhood than the defender can bring to protect it, faster than the defender can change that. Four conditions make this possible, and the classical writers from Steinitz onwards recognised all four:

  1. A lead in development — more pieces in play, so the attacker arrives first.
  2. Local superiority — more attackers than defenders around the king (the "king zone" of Chapter 4).
  3. Open lines — a file, diagonal or rank along which the attackers can reach the king.
  4. A weakened shelter — missing or advanced pawns in front of the king, or a king that never castled.

Steinitz is usually credited with the rule that only an advantage entitles you to attack — and that when you have one you are obliged to attack, or the advantage will vanish. The second half is the part club players forget: the four conditions are mostly temporary. A development lead disappears when the opponent finishes developing. An open file can be contested. A shelter can be repaired. That is why attacks are a race against the clock of the position.

🔍 Why this works: the arithmetic of tempi. Each move moves one piece. If you have four pieces in play and your opponent has one, you can create a threat with a piece he cannot meet with a developed piece — he has to answer with an undeveloped one, which often costs a further tempo, or with a pawn move, which weakens the shelter. A lead of three tempi lets you make three consecutive threats before the defender's reinforcements arrive. Local superiority is the same arithmetic in space: a square attacked twice and defended once falls. Open lines are what let the arithmetic happen at a distance — a rook on an open file "arrives" at the king in one move from anywhere on that file. And a weakened shelter reduces the number of defenders needed on the other side of the equation.

📐 Definition — development count and development lead: a side's development count is the number of its own knights and bishops that are not on its own back rank, plus 1 if it has castled. It runs from 0 to 5. The development lead is White's count minus Black's. In this chapter's data we measure it after move 12 (ply 24), exactly as the reference tables do. It is a crude count — a knight on a3 counts as developed — but it is objective and it can be computed for millions of games.

📐 Definition — attack conditions: for a position and a would-be attacker, outpost.dynamics checks the four conditions as follows: (1) development lead ≥ 2; (2) the attacker's pieces hitting the defender's king zone outnumber the defender's pieces covering it by ≥ 2; (3) an open or half-open file next to the defender's king, or an attacking queen, rook or bishop whose line to the king is blocked by at most one piece; (4) the king's pawn shelter scores ≤ 3 of 6 points, or the king has not castled while queens are on. The count (0–4) is a reading aid, not an evaluation.

The classic: Tal–Tringov, Amsterdam Interzonal 1964

To choose this chapter's attacking example we did not reach for a famous game from memory; we screened 2,078 decisive games of 30–60 plies by fifteen great attacking players (the master collections of Morphy, Anderssen, Alekhine, Tal, Spassky, Fischer, Kasparov, Judit Polgar and others), and asked which were won by the side leading in development by three or more after move 12. Thirty-three were. The cleanest of them is Tal's 17-move win against Georgi Tringov, in which the development lead after move 12 was four.

Tal – Tringov, Amsterdam Interzonal 1964 (master_games 93750), 1-0
1.e4 g6 2.d4 Bg7 3.Nc3 d6 4.Nf3 c6 5.Bg5 Qb6 6.Qd2 Qxb2 7.Rb1 Qa3 8.Bc4 Qa5 9.O-O e6
10.Rfe1 a6 11.Bf4 e5 12.dxe5 dxe5 13.Qd6 Qxc3 14.Red1 Nd7 15.Bxf7+ Kxf7 16.Ng5+ Ke8 17.Qe6+

Black's queen made four of Black's first eight moves (...Qb6, ...Qxb2, ...Qa3, ...Qa5) to win one pawn.

Tal–Tringov 1964, after 6...Qxb2

♟️ Position: White Ke1, Qd2, Ra1, Rh1, Bf1, Bg5, Nc3, Nf3, a2, c2, d4, e4, f2, g2, h2; Black Ke8, Qb2, Ra8, Rh8, Bc8, Bg7, Nb8, Ng8, a7, b7, c6, d6, e7, f7, g6, h7 — White to move. FEN: rnb1k1nr/pp2ppbp/2pp2p1/6B1/3PP3/2N2N2/PqPQ1PPP/R3KB1R w KQkq - 0 7

At this moment the pawn grab is not yet a mistake. Stockfish 19 gives +0.56 (Stockfish 19, depth 20) after 6...Qxb2 — White has some compensation for the pawn, nothing more. Our module reads the position as White 2/4 attack conditions (development lead +2; Black's king uncastled with queens on). What turns a playable pawn grab into a lost game is what Black does with the next five moves: 7...Qa3, 8...Qa5, 9...e6, 10...a6, 11...e5. From move 5 to move 11 Black made seven moves — four with the queen, three with pawns — and not one minor piece moved. By move 12:

Tal–Tringov 1964, after 12...dxe5

♟️ Position: White Kg1, Qd2, Rb1, Re1, Bc4, Bf4, Nc3, Nf3, a2, c2, e4, f2, g2, h2; Black Ke8, Qa5, Ra8, Rh8, Bc8, Bg7, Nb8, Ng8, a6, b7, c6, e5, f7, g6, h7 — White to move. FEN: rnb1k1nr/1p3pbp/p1p3p1/q3p3/2B1PB2/2N2N2/P1PQ1PPP/1R2R1K1 w kq - 0 13

Count with the book's definition. White: knights on c3 and f3, bishops on c4 and f4 — four pieces off the back rank — plus castled: 5. Black: the bishop on g7 — 1. Lead +4: extreme by any standard (in our OTB sample only 1.1% of games have a lead of even three). Three of the four attack conditions hold (development, open lines — the d-file, which White has just opened — and the uncastled king), and the dynamic readings are lopsided: White has 20 more legal piece moves than Black and 3 more checks available.

🤖 Engine check: after 12...dxe5 Stockfish 19 scores the position +5.98 (depth 20) and +6.53 (depth 24) for White, with 13.Qd6! first in both searches. Material is still in Black's favour by a pawn. The engine is not counting material here; it is counting tempi. 13.Qd6 plants the queen next to the uncastled king, covering d7, e7 and c7 and tying every black piece to the back rank; the main line 13...exf4 14.Nd5 shows why taking the bishop does not help — White's knights jump into c7 and the king has no time to escape. The human translation: when the defender is four tempi behind, a pawn of material is worth nothing.

Tringov took the knight on c3 instead (13...Qxc3), and Tal finished with a classic pattern: 14.Red1 (the last rook joins on the open d-file) Nd7, and now the sacrifice that the open lines invite.

Tal–Tringov 1964, after 14...Nd7

♟️ Position: White Kg1, Qd6, Rb1, Rd1, Bc4, Bf4, Nf3, a2, c2, e4, f2, g2, h2; Black Ke8, Qc3, Ra8, Rh8, Bc8, Bg7, Nd7, Ng8, a6, b7, c6, e5, f7, g6, h7 — White to move. FEN: r1b1k1nr/1p1n1pbp/p1pQ2p1/4p3/2B1PB2/2q2N2/P1P2PPP/1R1R2K1 w kq - 2 15

Stockfish 19 announces #5 (depth 20) with 15.Bxf7+. White is now a piece and a pawn down (our material reading is −4) and mates anyway: 15...Kxf7 16.Ng5+ Ke8 17.Qe6+ and Black resigned. Both white rooks, both bishops, a knight and the queen took part; the only black pieces that had left the back rank by the end were the queen (stranded on c3), the bishop on g7 and the knight that reached d7 one move too late.

The lesson is not "don't grab pawns" — 6...Qxb2 was objectively playable. It is that the pawn grab created a development deficit, and the deficit was what Black had to fix with every subsequent move. Black needed a move like 11...Qd8, bringing the queen home (you will analyse that position in the exercises). Instead Black played 11...e5, a pawn move that opened the d-file for White.

🔄 Check your understanding 1. Name the four conditions for an attack and say which of them are temporary. 2. In the position after 12...dxe5, Black is a pawn up. Why does the engine score it +6.53 for White? 3. Why is the development count "crude", and why do we use it anyway?

Answer

  1. Development lead, local superiority, open lines, weakened shelter. The first three are usually temporary: development can be completed, superiority can be balanced by bringing defenders, lines can be closed or contested. A weakened shelter is the most permanent (pawns cannot move backwards), but even it can be compensated by defenders.
  2. Black has one developed piece against White's four plus a castled king; the king is still on e8 on a file White has just opened. White's threats arrive faster than Black's pieces can — the material is irrelevant while the attack lasts.
  3. It counts a badly placed knight as developed and ignores rooks and queen. We use it because it is objective and computable for every game, which lets us test the principle on hundreds of thousands of games.

12.2 Does a Development Lead Pay? The Data

Tal–Tringov is one game. The claim behind it — a development lead turns into points — is a statistical claim, so let us test it. The reference tables already contain the pooled answer: in OTB broadcast games a White development lead of three or more after move 12 goes with a White score of 59.5% (n = 1,699; rating-adjusted +7.0 points) against 53.0% with equal development (n = 128,983; +2.7); in balanced Lichess games the same comparison is 57.2% (n = 13,064; +6.9) against 51.2% (+1.3). The mean evaluation after move 12 rises with the lead too: in the OTB games from −30 cp at a lead of −3 or worse to +141 cp at +3 or more.

What the pooled table cannot tell you is who profits. So 01_development_lead.py replays 24 plies of up to 15,000 games per rating band — 119,918 balanced Lichess games (bullet to classical, BOT games excluded, weighted back to the population) and 94,333 OTB broadcast games — and scores the side that leads by two or more.

def dev_count(board: chess.Board, color: chess.Color, castled: bool) -> int:
    back = 0 if color == chess.WHITE else 7
    minors = board.pieces(chess.KNIGHT, color) | board.pieces(chess.BISHOP, color)
    return sum(1 for sq in minors if chess.square_rank(sq) != back) + (1 if castled else 0)

# after replaying 24 plies:  lead = dev_count(b, WHITE, ...) - dev_count(b, BLACK, ...)
# score of the side WITH the lead (colours pooled) and its Elo expectation:
s = np.where(dl.lead > 0, dl.score_white, 1 - dl.score_white)
e = np.where(dl.lead > 0, dl.exp_white, 1 - dl.exp_white)
== Score of the side with a development lead of >= 2 after move 12 (colours pooled) ==
                        set      band  games  share_lead  n_lead  leader_score        ci  adj
Lichess balanced (weighted)     <1200  15000        26.2    3871          57.0 55.4-58.5  6.5
Lichess balanced (weighted) 1400-1599  14999        19.6    2884          54.9 53.1-56.7  5.0
Lichess balanced (weighted) 1800-1999  15000        15.2    2253          54.7 52.6-56.7  4.8
Lichess balanced (weighted) 2200-2399  15000        14.1    2099          52.1 50.0-54.2  2.0
Lichess balanced (weighted)     2400+  14918        13.6    1998          52.8 50.6-54.9  2.7
                    OTB all     <1200   2824        20.0     564          66.4 62.4-70.2  7.2
                    OTB all 1400-1599  15000        10.5    1582          54.2 51.8-56.7  4.4
                    OTB all 1800-1999  15000        11.2    1674          52.1 49.7-54.5  1.7
                    OTB all 2200-2399  15000        11.2    1678          51.9 49.5-54.3  2.4
                    OTB all     2400+  15000        10.8    1626          50.3 47.9-52.7  0.5
               OTB balanced     2400+   6802        10.7     727          49.1 45.5-52.7 -0.9

(Selected rows; the full table, including every band and the lead ≥ 3 version, is in code/out_01_development_lead.txt. "adj" is the leader's score minus its Elo expectation, in percentage points.)

Development lead and score by band

📊 Figure (described): For each rating band, the score of the side leading in development by two or more after move 12, minus its Elo expectation, with 95% intervals — Lichess balanced games (blue) and OTB broadcast games (orange). Both lines slope down: the lead is worth about +6.5 to +7 points below 1200 and only +0.5 to +2.7 points above 2200. In OTB games at 2400+ the interval includes zero.

Three things stand out.

Development leads are common at low levels and rare at high levels. A lead of two or more occurs in 26.2% of Lichess games under 1200 but 13.6% at 2400+; in OTB games the share is a steady 10–11% from 1400 upwards. Strong players simply do not fall behind in development very often — which is why the openings of Chapter 19 stress it so much.

When they do, the lead is worth less. At 2400+ in OTB games the side with the lead scores 50.3%, half a point above expectation (and below expectation, −0.9, in balanced games — the interval 45.5–52.7% easily includes 50%). Under 1400 the same lead is worth four to seven points. The likeliest explanation is the one Tal–Tringov illustrates: a lead is only worth something if the opponent cannot neutralise it in time, and strong defenders know how to — they trade the most dangerous attacker, close the lines, castle by hand. Weaker defenders let the leader make threat after threat.

It pays more at slower time controls. Pooled over bands, the leader's rating-adjusted score in Lichess games is +2.8 in bullet, +4.8 in blitz and +7.3 in rapid. That surprised us at first — you might expect fast games to reward initiative. But exploiting a lead takes calculation (Tal needed 13.Qd6 and 15.Bxf7+); in bullet there is no time to find the knockout, and the lead often fizzles.

⚠️ Common pitfall: reading the table as "develop faster and you will score seven points more". The data are associations. Games with a big development lead are often games in which one side played a gambit, grabbed a pawn (like Tringov) or simply blundered in the opening, and the score reflects all of that. What the data do support is the narrower statement the chapter needs: when a lead exists, the side with it scores better, and the effect shrinks as the opponent gets stronger. The cure for the pitfall is the engine: in your own games, check whether the lead was turned into concrete threats (12.1) or just sat there.

📋 Try it — Database research: Using 01_development_lead.py, split the Lichess table by the direction of the lead: is a White lead of two worth more than a Black lead of two at the same band? Then restrict to games in which the leader had not castled by move 12. Expected shape: a table with one row per band and two columns of rating-adjusted scores, and a second table of the same shape.

Answer

The White-score-by-lead table in the output already gives the pooled picture for Lichess balanced games: White's rating-adjusted score is +1.6 with equal development, +5.5 with a lead of +2 and −2.3 with a lead of −2. Measured from the equal-development baseline (which carries White's first-move edge), a two-tempo lead is worth about +3.9 points to White and about +3.9 points to Black — symmetric. Your band split should show the same downward slope for both colours. Removing castled leaders isolates leads made of minor pieces, which tend to come from the opponent's opening mistakes (a queen sortie, a pawn grab); expect them to be at least as valuable, but check your own output before you claim it — and note how many games are left in each cell.


12.3 Opening Lines: Sacrificing Material for Time

The four conditions rarely arrive together by themselves. More often the attacker has two of them — say, more pieces near the king and a slightly loosened shelter — and has to create the third, usually an open line. Pawn levers do it slowly (the opposite-side pawn storms of Chapter 4); sacrifices do it at once.

The principle. Material is a static asset: it will still be there in twenty moves. Open lines and tempi are dynamic assets: they exist now. A sacrifice converts the first into the second. It is correct when the dynamic assets it buys are worth more than the material it costs — for long enough to be cashed in. Chapter 6 priced the exchange sacrifice as a positional weapon; here we look at it as an attacking one, and Chapter 11 takes the same idea to its forcing extreme.

A modern example: Praggnanandhaa–Carlsen, Norway Chess 2026

The most famous attacking sacrifice in the Sicilian is the exchange on c3: Black gives a rook for the knight that defends White's king after White has castled queenside, and the pawns in front of that king are shattered. Here is a 2026 case from our broadcast data, played by Magnus Carlsen against R Praggnanandhaa in round 5 of Norway Chess 2026 in Oslo (the broadcast's "Open" section).

Praggnanandhaa R – Carlsen, Magnus, 2026 Norway Chess Open, Oslo, round 5, 2026.05.24 (broadcast), 1-0 — moves 1-17
1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6 6.h4 h6 7.Bc4 e6 8.a3 Nc6 9.Be3 Bd7 10.Ba2 Be7
11.Qe2 h5 12.f3 Ne5 13.O-O-O Rc8 14.Bg5 Rxc3 15.bxc3 Qa5 16.Kb1 Qxa3 17.f4

Praggnanandhaa–Carlsen 2026, after 14...Rxc3

♟️ Position: White Kc1, Qe2, Rd1, Rh1, Ba2, Bg5, Nd4, a3, b2, c2, e4, f3, g2, h4; Black Ke8, Qd8, Rc3, Rh8, Bd7, Be7, Ne5, Nf6, a6, b7, d6, e6, f7, g7, h5 — White to move. FEN: 3qk2r/1p1bbpp1/p2ppn2/4n1Bp/3NP2P/P1r2P2/BPP1Q1P1/2KR3R w k - 0 15

White has castled long; Black's rook on c8 has been staring down the half-open c-file at the knight on c3, which is the most important defender of the white king. After 14...Rxc3 15.bxc3 White's king has doubled c-pawns in front of it, the b-file is open, and the a3 pawn — pushed on move 8 — is a target. Black follows up with ...Qa5 and ...Qxa3, regaining a pawn with the queen next to the white king. Two of the four conditions are now Black's: an open line (the b-file and the a3–c1 diagonal) and a weakened shelter.

🤖 Engine check — and a lesson about depth: we evaluated the position after 14...Rxc3 at five depths.

Depth Evaluation (White's view) First moves of the main line
8 −0.18 15.bxc3 Qa5 16.Kb2 O-O
12 +0.04 15.bxc3 Qa5 16.Kb1 O-O
16 +0.25 15.bxc3 Qb6 16.Rhg1 Qa5
20 +0.26 15.bxc3 Qa5 16.Kb1 O-O
24 +0.26 15.bxc3 Qa5 16.Kb1 O-O

At low depth Stockfish thinks Black's compensation is more than enough; by depth 16 it has settled on a small White edge, and depths 20 and 24 agree. After 16...Qxa3 it is +0.51 (Stockfish 19, depth 20): White is the exchange for a pawn up and slightly better — which is to say, Black's compensation is real but not quite complete. In human terms: the sacrifice bought a permanent target (the shattered queenside) and lost a rook's worth of long-term firepower. Whether that trade is good depends on whether Black can keep the initiative going, which is exactly what the static/dynamic distinction is about. In section 12.8 we will see that this depth pattern — evaluations that keep moving until depth 16 or so — is typical of positions where one side has given material for activity.

Praggnanandhaa–Carlsen 2026, after 16...Qxa3

♟️ Position: White Kb1, Qe2, Rd1, Rh1, Ba2, Bg5, Nd4, c2, c3, e4, f3, g2, h4; Black Ke8, Qa3, Rh8, Bd7, Be7, Ne5, Nf6, a6, b7, d6, e6, f7, g7, h5 — White to move. FEN: 4k2r/1p1bbpp1/p2ppn2/4n1Bp/3NP2P/q1P2P2/B1P1Q1P1/1K1R3R w k - 0 17

Now notice what Praggnanandhaa did: 17.f4!, kicking the e5 knight and preparing e4–e5 to open the centre — where Black's king is still standing. Stockfish 19 agrees with the choice (17.f4 is its first line at depth 20, +0.51). This is the counterattack principle of section 12.5 in miniature: when the opponent attacks your king on one wing, the strongest answer is often to strike where his king lives. After 17...Neg4 18.e5 dxe5 19.fxe5 the d-file was open, and after 25.Nd6+ Black's king had to run to f8. The game was eventually decided at move 46, a long way and many twists from the sacrifice.

⚠️ Common pitfall: sacrificing to open a line before you have the pieces to use it. Carlsen's ...Rxc3 came after ...Ne5, ...Rc8 and ...Qa5 were all ready, so the queen could hit a3 at once. Club players often play the right sacrifice two moves too early, when the open line has no attacker behind it — and the defender uses the extra tempo to close it. Count the pieces that can use the line in the next two moves before you open it.

🔄 Check your understanding 1. Why is material called a static asset and an open file a dynamic one? 2. After 14...Rxc3 the engine's verdict moved from −0.18 (depth 8) to +0.26 (depth 20). What does that tell you about checking sacrifices with a quick engine glance? 3. Why did 17.f4 fit the counterattack principle?

Answer

  1. Material stays on the board unless something is captured; an open file can be closed, contested or made irrelevant within a few moves if it is not used.
  2. Shallow evaluations of positions with material imbalances and open kings are unreliable — in this case they overrated the sacrifice. Check at depth 20 or more, and at two depths (section 12.8).
  3. Black was attacking White's queenside king; 17.f4 and 18.e5 attacked in the centre, where Black's king still stood, forcing Black to spend moves on his own king's safety.

12.4 The Defender's Toolkit

Most chess books spend a hundred pages on attack for every ten on defence. That is backwards for most players: you will defend at least as often as you attack, and the data of section 12.7 show that a good defensive habit saves points at every level. The defender has five tools.

  1. Trade the attacking pieces. An attack is made of pieces; every exchange of an attacker for a defender (or, better, for a less useful piece) reduces it. Trades are especially strong against the piece that holds the attack together — often a knight that has reached an outpost near your king.
  2. Close or block the lines. Put a pawn or piece on the open file or diagonal; refuse to open lines yourself (the commonest defensive error is a pawn move in front of the king that opens a line for the attacker).
  3. Bring defenders — or bring the king. Re-route a piece to the threatened wing; or move the king itself to a safer place ("castling by hand", or walking to the other wing).
  4. Return material. If you are defending because you grabbed something, giving it back at the right moment often kills the attack. A defender who clings to every pawn usually loses more than the pawn.
  5. Counterattack. Create a threat of your own that the attacker must respond to. Every tempo the attacker spends answering your threat is a tempo his attack does not get. This is the most important tool, and it gets its own section (12.5).

🧩 Productive struggle: before reading on, look at the position below from Steinitz–Lasker, St Petersburg 1895/96. Black's king is on f8 with no castling rights; White is a pawn up, his queen and bishop are close to the black king and his rook controls the d-file. You are Lasker (Black, waiting for White's 27th move). Which of the five tools could possibly save you? Write down your answer, then read on.

Steinitz–Lasker 1895, after 26...Qxh2

♟️ Position: White Kf1, Qd4, Rd1, Ba6, a2, b2, f2, f3; Black Kf8, Qh2, Rh8, Be7, f6, g6, h7 — White to move. FEN: 5k1r/4b2p/B4pp1/8/3Q4/5P2/PP3P1q/3R1K2 w - - 0 27

The classic: Steinitz–Lasker, St Petersburg 1895/96

Emanuel Lasker held the world title for 27 years, and his contemporaries regarded him as the most resourceful defender of his time. The game below is from the St Petersburg quadrangular tournament of 1895/96, against the man he had taken the title from.

Steinitz, William – Lasker, Emanuel, St Petersburg 1895/96 (master_games 65429), 1/2-1/2
1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bf4 c5 5.e3 Nc6 6.Nf3 a6 7.dxc5 Bxc5 8.cxd5 Nxd5 9.Nxd5 exd5
10.Bd3 Bb4+ 11.Ke2 d4 12.exd4 Bg4 13.Be3 Qd5 14.Qb3 Nxd4+ 15.Bxd4 Qxd4 16.Rhd1 Kf8 17.Bc4 Bxf3+
18.gxf3 Qe5+ 19.Kf1 Be7 20.Rd7 Rd8 21.Rxd8+ Bxd8 22.Qxb7 Qc7 23.Qd5 g6 24.Qd4 f6 25.Rd1 Be7
26.Bxa6 Qxh2 27.Qd7 Qf4 28.Bb5 Kf7 29.Rd4 Qxf3 30.Bc4+ Kf8 31.Qe6 Qh1+ 32.Ke2 Qh5+ 33.f3 Qe5+
34.Qxe5 fxe5 35.Rd7 h5 36.Rb7 Rh6 37.Kf1 g5 38.Rb8+ Kg7 39.Rg8+ Kf6 40.Kg2 Kf5 41.Bd3+ Kf4
42.Rg6 Rh8 43.Rg7 Bc5 44.Bg6 Rd8

Both kings were uncastled — Steinitz's had been on e2 since move 11 — but it was Lasker's that came under fire. After 16...Kf8 Stockfish 19 rates White +1.58 (depth 20), and the pressure grew: by move 26 Steinitz was a pawn up with his queen, rook and bishop all aimed at the black king, and the engine's verdict was +4.94 (Stockfish 19, depth 20).

Steinitz–Lasker 1895, after 16...Kf8

♟️ Position: White Ke2, Qb3, Ra1, Rd1, Bd3, Nf3, a2, b2, f2, g2, h2; Black Kf8, Qd4, Ra8, Rh8, Bb4, Bg4, a6, b7, f7, g7, h7 — White to move. FEN: r4k1r/1p3ppp/p7/8/1b1q2b1/1Q1B1N2/PP2KPPP/R2R4 w - - 2 17

Lasker's answer to the productive-struggle question was tool number 5. Instead of passively guarding his king (there was not much left to guard it with), he sent his queen into White's position: 26...Qxh2, 27...Qf4, 29...Qxf3. Look at what the queen achieved. It won back material (two pawns), it created direct threats against White's own king, which had no pawn cover on the kingside any more, and it forced Steinitz to spend moves on checks and defensive manoeuvres instead of finishing the attack. Our dynamic_factors reading in the critical position below says it in one number: Black had 14 more checking moves available than White.

Steinitz–Lasker 1895, after 32...Qh5+

♟️ Position: White Ke2, Qe6, Rd4, Bc4, a2, b2, f2; Black Kf8, Qh5, Rh8, Be7, f6, g6, h7 — White to move. FEN: 5k1r/4b2p/4Qpp1/7q/2BR4/8/PP2KP2/8 w - - 6 33

🤖 Engine check: in the diagram Stockfish 19 at depth 24 gives three king moves: 33.Kd3 +5.14, 33.Kf1 +5.14 (which transposes after 33...Qh1+ 34.Ke2 Qh5+ 35.Kd3) and 33.Kd2 +4.40. The game move 33.f3 scores +0.15 (depth 24). The winning idea is to walk the king towards the queenside, where Black's queen cannot follow with checks, and meet 33...Qf5+ with 34.Qxf5 gxf5 — a queenless ending in which Black's kingside pawns are split and White's rook heads for the seventh rank (the engine continues 35.a4 Kg7 36.Rd7). Steinitz instead blocked the check with a pawn. That allowed 33...Qe5+ 34.Qxe5 fxe5: the queens came off on Black's terms, the f-pawn recaptured towards the centre, and after ...h5 and ...Rh6 the buried rook came to life. A five-pawn advantage disappeared in one move. Why would a world champion miss it? Because a long defence with checks creates exactly this kind of decision under pressure: the attacker, who has been "winning" for twenty moves, has to find a quiet, precise king move rather than the natural block.

Lasker's defence does not prove that counterattacking always works — Steinitz was winning by five pawns until move 33. It shows something more useful: a defender who keeps creating threats gives the attacker chances to go wrong, and the data of section 12.7 suggest that most saves happen exactly this way.

📋 Try it — Engine analysis: from the diagram after 32...Qh5+, ask Stockfish 19 for the top three moves at depths 16, 20 and 24 (engine.evaluate(fen, depth=d, multipv=3)). At which depth does 33.Kd3 first appear in the top line? Then play 33.Kd3 Qf5+ 34.Qxf5 gxf5 and evaluate again: what is the eval, and what does White's rook do next in the engine's line?

Answer

At depths 20 and 24 the top line is 33.Kd3 (+5.52 at depth 20 and +5.14 at depth 24 in our run; 33.Kf1 is second, transposing). Your depth-16 result tells you how hard the move is to find. After the queen trade your evaluation should still be several pawns in White's favour (check the exact figure at your depth): White's rook goes to the seventh rank (the engine line continues 35.a4 Kg7 36.Rd7 Rd8) against split black kingside pawns. Compare with the game's 33.f3 Qe5+ 34.Qxe5 fxe5, where Black's pawn structure stays compact and the rook gets out via h6.

The modern defence: Abdusattorov–Gukesh, Prague 2026

Our second example is a modern one and a different kind of defence: a king that never castles, a long siege, and a defender who survives by trading the right piece at the right moment and then counterattacking in the centre.

Abdusattorov, Nodirbek – Gukesh D, Prague Chess Festival 2026, Masters (broadcast), 1-0 — moves 1-40
1.c4 e5 2.Nc3 Nf6 3.e3 Bb4 4.Nge2 d5 5.cxd5 Nxd5 6.Qb3 Nxc3 7.Qxb4 Nd5 8.Qb3 Nc6 9.Nc3 Ndb4
10.Bc4 Nd3+ 11.Ke2 Nf4+ 12.Kf1 Ne6 13.Qd1 b6 14.b4 Bb7 15.a3 Qh4 16.d3 O-O-O 17.Bb2 Ng5 18.h3 f5
19.Rc1 Kb8 20.Nd5 Rd7 21.Qc2 Re8 22.f3 Qh6 23.Kf2 Qh4+ 24.Kf1 Ne6 25.Nc3 Qh6 26.Qf2 g5 27.Kg1 Qg6
28.Ne2 a6 29.h4 g4 30.h5 Qh6 31.fxg4 fxg4 32.Ng3 b5 33.Bxe6 Rxe6 34.Qe2 Nd8 35.Rh4 Rg7 36.e4 Qg5
37.Nf5 Rg8 38.Rf1 Nc6 39.Bc1 Nd4 40.Qd1 Qd8

White's king was driven out by checks on moves 10 and 11 and never castled; it reached g1 "by hand" on move 27. Black castled long, threw the kingside pawns forward (...f5, ...g5, ...g4) and by move 31 had opened the f-file next to White's king, with the queen on h6 and both knights close by. Our module reads two of the four conditions for Black (open lines, weakened shelter), and the engine says the attack is worth almost three pawns.

Abdusattorov–Gukesh 2026, after 11...Nf4+

♟️ Position: White Ke2, Qb3, Ra1, Rh1, Bc1, Bc4, Nc3, a2, b2, d2, e3, f2, g2, h2; Black Ke8, Qd8, Ra8, Rh8, Bc8, Nc6, Nf4, a7, b7, c7, e5, f7, g7, h7 — White to move. FEN: r1bqk2r/ppp2ppp/2n5/4p3/2B2n2/1QN1P3/PP1PKPPP/R1B4R w kq - 9 12

At move 12 the engine thinks this is roughly balanced (−0.48, Stockfish 19, depth 20, after the only sensible 12.Kf1). White has the bishop pair; Black has 41 more legal moves and 38 more checks available — the dynamic factors are all Black's. Twenty moves later they had been turned into a real attack.

Abdusattorov–Gukesh 2026, after 31...fxg4

♟️ Position: White Kg1, Qf2, Rc1, Rh1, Bb2, Bc4, Ne2, a3, b4, d3, e3, g2, h5; Black Kb8, Qh6, Rd7, Re8, Bb7, Nc6, Ne6, a6, b6, c7, e5, g4, h7 — White to move. FEN: 1k2r3/1bpr3p/ppn1n2q/4p2P/1PB3p1/P2PP3/1B2NQP1/2R3KR w - - 0 32

🤖 Engine check: here Stockfish 19 rates the position −2.92 (depth 24) — a clear Black advantage — with 32.Ng3 as the best defence, bringing the knight to cover the kingside (32.Bxe6 at once is −3.20). Its main line continues 32...Nf4!, sending the e6 knight into the attack. Gukesh instead played 32...b5, attacking the c4 bishop. That gave White a tempo, and Abdusattorov used it for the most important defensive decision in the game:

Abdusattorov–Gukesh 2026, after 32...b5

♟️ Position: White Kg1, Qf2, Rc1, Rh1, Bb2, Bc4, Ng3, a3, b4, d3, e3, g2, h5; Black Kb8, Qh6, Rd7, Re8, Bb7, Nc6, Ne6, a6, b5, c7, e5, g4, h7 — White to move. FEN: 1k2r3/1bpr3p/p1n1n2q/1p2p2P/1PB3p1/P2PP1N1/1B3QP1/2R3KR w - - 0 33

33.Bxe6! — trading the bishop for the knight that was about to jump to f4. Stockfish 19 at depth 24 rates 33.Bxe6 −0.80; the next-best move, 33.Bb3, is −2.85. It is effectively the only move, and it is a trade: tool number 1. Our defensive_resources function, asked to classify White's 39 legal moves here, labels exactly one of them a "trade" (a capture of a piece that attacks, or can attack in one move, White's king zone) — and it is the engine's choice. In two moves White's evaluation improved by more than two pawns, almost all of it because Black spent a tempo on the queenside (...b5) at the moment the attack needed one more piece.

Then came tool number 5. With the most dangerous attacker gone, White played 36.e4 and 37.Nf5, planting a knight in the heart of Black's position and opening the centre; after 37.Nf5 Stockfish 19 has White +1.07 (depth 20).

Abdusattorov–Gukesh 2026, after 37.Nf5

♟️ Position: White Kg1, Qe2, Rc1, Rh4, Bb2, Nf5, a3, b4, d3, e4, g2, h5; Black Kb8, Qg5, Re6, Rg7, Bb7, Nd8, a6, b5, c7, e5, g4, h7 — Black to move. FEN: 1k1n4/1bp3rp/p3r3/1p2pNqP/1P2P1pR/P2P4/1B2Q1P1/2R3K1 b - - 2 37

The evaluation curve (below) tells the whole story: Black better for 30 moves, the swing at move 34, then a long technical phase that ended only when Black erred in a queen ending (67...Qf7, a 32.6-point win-% drop at depth 16). At depth 16 White's book accuracy for the game was 95.0 and Black's 93.4 — two very good games of chess in which the defender's two best decisions came at moves 33 and 36.

Evaluation curves of Tal–Petrosian 1959 and Abdusattorov–Gukesh 2026

📊 Figure (described): White's win % after every move (Stockfish 19, depth 16) in two games, with the three largest swings labelled. Top: Tal–Petrosian 1959 — White's edge peaks after 13...Nxg3 and is surrendered in two steps, 17.Nc7+ and 21.Nxa8, ending in a perpetual. Bottom: Abdusattorov–Gukesh 2026 — thirty moves in Black's favour (dark area), the turnaround at moves 33–37, and the late decisive error 67...Qf7.

🔄 Check your understanding 1. List the defender's five tools in order of how active they are. 2. In Steinitz–Lasker, what did Lasker's queen raid achieve besides winning two pawns? 3. Why was 33.Bxe6 in Abdusattorov–Gukesh worth more than two pawns of evaluation?

Answer

  1. From least to most active: close/block lines; bring defenders (or the king); trade attackers; return material; counterattack.
  2. It created threats against White's own king, forced White to spend tempi on checks and defence, and gave the attacker hard decisions — Steinitz eventually made the wrong one (33.f3 instead of 33.Kd3).
  3. It removed the black piece that was about to join the attack (the knight heading for f4), at the one moment White had a free tempo. The alternatives left that knight alive and the engine rated them about −2.85.

12.5 The Counterattack: The Strongest Defence

The principle. When your opponent attacks on one wing, the most effective defence is very often a counterattack on another — the centre, the other wing, or the attacker's own king. The question is never "is my position under attack?" but "whose attack is faster?".

The reasoning. An attack is a race against the defender's ability to neutralise it. A counterattack changes the race: now both sides have threats, and each tempo the attacker spends parrying yours is a tempo not spent on his own. A counterattack also exploits a structural fact: the attacker has, by definition, sent pieces away from his own king. Tal–Petrosian is the cleanest example in our data.

Tal, Mihail – Petrosian, Tigran V, Candidates Tournament, Bled/Zagreb/Belgrade 1959, round 26 (master_games 80938), 1/2-1/2
1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 Nbd7 6.Bc4 a6 7.Bg5 Qa5 8.Qd2 e6 9.O-O h6 10.Bh4 g5
11.Bg3 Nh5 12.Bxe6 fxe6 13.Nxe6 Nxg3 14.fxg3 Ne5 15.Rxf8+ Rxf8 16.Qxd6 Rf6 17.Nc7+ Kf7 18.Rf1 Rxf1+
19.Kxf1 Nc4 20.Qxh6 Qc5 21.Nxa8 Nd2+ 22.Ke2 Bg4+ 23.Kd3 Qc4+ 24.Ke3 Qc5+

Tal–Petrosian 1959, after 12.Bxe6

♟️ Position: White Kg1, Qd2, Ra1, Rf1, Be6, Bg3, Nc3, Nd4, a2, b2, c2, e4, f2, g2, h2; Black Ke8, Qa5, Ra8, Rh8, Bc8, Bf8, Nd7, Nh5, a6, b7, d6, f7, g5, h6 — Black to move. FEN: r1b1kb1r/1p1n1p2/p2pB2p/q5pn/3NP3/2N3B1/PPPQ1PPP/R4RK1 b kq - 0 12

Black's 10...g5 and 11...Nh5 went after White's bishop and left Black's king in the centre with every kingside pawn moved. Tal's 12.Bxe6 is the attacker's answer: three of the four conditions hold for White (a development lead of +3, open lines, the uncastled king). Stockfish 19 rates it +0.90 (depth 24) — good for White, but not crushing; this is a sacrifice that buys an attack, not a forced win.

The first defensive choice came at move 13. After 13.Nxe6 the engine's best defence was 13...Ndf6 (+1.04, depth 24), bringing a piece towards the king. Petrosian took the bishop instead, 13...Nxg3 — +2.54 in the same depth-24 search. That is a real inaccuracy, and the evaluation graph above shows it as the first big swing. Even great defenders make the attacker's life easier sometimes.

Tal–Petrosian 1959, after 13.Nxe6

♟️ Position: White Kg1, Qd2, Ra1, Rf1, Bg3, Nc3, Ne6, a2, b2, c2, e4, f2, g2, h2; Black Ke8, Qa5, Ra8, Rh8, Bc8, Bf8, Nd7, Nh5, a6, b7, d6, g5, h6 — Black to move. FEN: r1b1kb1r/1p1n4/p2pN2p/q5pn/4P3/2N3B1/PPPQ1PPP/R4RK1 b kq - 0 13

What Petrosian did next is the lesson. Instead of clinging to the extra piece, he gave material back to activate his remaining pieces (tool number 4) and pointed them at White's king (tool number 5): 14...Ne5, 15...Rxf8 recapturing with the rook, 16...Rf6 bringing it into play, 18...Rxf1+ trading off White's last rook, 19...Nc4 and 20...Qc5. By move 20 White's king on f1 had two black pieces aimed at it (the knight heading for d2 and the queen on c5) and the bishop on c8 ready to join with ...Bg4+.

Tal–Petrosian 1959, after 16...Rf6

♟️ Position: White Kg1, Qd6, Ra1, Nc3, Ne6, a2, b2, c2, e4, g2, g3, h2; Black Ke8, Qa5, Ra8, Rf6, Bc8, Ne5, a6, b7, g5, h6 — White to move. FEN: r1b1k3/1p6/p2QNr1p/q3n1p1/4P3/2N3P1/PPP3PP/R5K1 w q - 1 17

🤖 Engine check: after 16...Rf6 Stockfish 19 prefers 17.Qc7! (+2.64, depth 24), offering the queen trade: 17...Qxc7 18.Nxc7+ Kd8 19.Nxa8 leaves White a clean exchange and pawns ahead in an endgame. Tal played the attacking 17.Nc7+ instead (+1.00 at depth 20; +0.84 for the position after it at depth 24). It is a recognisable human choice — the attacker keeps the queens on because the attack is what he is good at — and it cost a pawn and a half. When the counterattack is coming, the attacker's best move is often to trade queens and keep the material. Then, at move 21, the second step: 21.Qh7+ (+0.80, depth 24) would have kept the black king busy; 21.Nxa8 (0.00) let the counterattack land.

Tal–Petrosian 1959, after 21...Nd2+

♟️ Position: White Kf1, Qh6, Na8, Nc3, a2, b2, c2, e4, g2, g3, h2; Black Kf7, Qc5, Bc8, Nd2, a6, b7, g5 — White to move. FEN: N1b5/1p3k2/p6Q/2q3p1/4P3/2N3P1/PPPn2PP/5K2 w - - 1 22

In the final position White is four points of material up (our static reading: material +4) and has 41 fewer legal moves and 32 fewer checks than Black. Stockfish 19 says 0.00 (depth 20): 22.Ke2 Bg4+ 23.Kd3 Qc4+ 24.Ke3 Qc5+ is a perpetual, and the white king cannot escape it. At depth 16 both players' book accuracy for the whole game was about 95 — this was not a blunder-fest but two great players trading dynamic assets for static ones until neither had anything left to trade.

Whose attack is faster? What the data say about races

The cleanest data version of "whose attack is faster" is opposite-side castling, where both sides usually attack. The reference tables show that such games are more decisive: in OTB broadcast games the draw rate with opposite-side castling is 19.4% (n = 30,629) against 26.8% with same-side castling (n = 219,796), and the gap holds in every FIDE band from 1400–1599 (13.4% vs 19.5%) to 2400+ (29.6% vs 41.8%). In Lichess balanced games, where draws are rare at any rate, it is 3.3% vs 4.3%. White's score hardly changes (53.4% vs 53.0% OTB), so the race does not favour either colour on average — it simply makes the result more likely to be decisive. The side that castled queenside in these games scores 51.9% in OTB play (n = 30,629, rating-adjusted +1.3): no measurable penalty for the "more exposed" long castle. Chapter 4 measured who wins the race when the pawn storms actually arrive; the short version is that the first storm to land matters more than which wing you castled on.

📋 Try it — Analyze this position: go back to the position after 20...Qc5 (the hook diagram). Before looking at the engine line again, list (a) every black piece that can give check in two moves, and (b) every white move that removes or blocks one of those checks with tempo. Then compare your list with 21.Qh7+.

Answer

(a) If it were Black's move there would be five checks at once — the knight's ...Nd2+ and ...Ne3+ and the queen's ...Qf2+, ...Qg1+ and ...Qf5+ (a python-chess one-liner lists them) — and ...Bg4+ follows as soon as the king steps to e2. (b) 21.Qh7+ uses White's move to check first: in the engine's line 21...Kf8 22.N3d5 Ne3+ 23.Nxe3 Qxe3 24.Qh8+ Kf7, White trades off the dangerous knight and keeps checking, so Black's three pieces never coordinate. 21.Nxa8 spends the tempo on the rook — and the black checks arrive first. The principle: in a race, a move with tempo is worth more than material.

🔄 Check your understanding 1. In a race, what is worth more than material? 2. What two errors turned Tal's +2.64 (depth 24) into a draw? 3. In OTB games, does the side that castled queenside in opposite-castling games score worse?

Answer

  1. Tempo — moves that come with check, capture or a threat, so the opponent's attack never gets its turn.
  2. 17.Nc7+ instead of the queen-trade offer 17.Qc7 (about a pawn and a half), and 21.Nxa8 instead of 21.Qh7+ (+0.80 to 0.00).
  3. No: it scores 51.9% (n = 30,629), 1.3 points above its Elo expectation in the reference tables. Opposite-side castling mainly makes games more decisive (draw rate 19.4% vs 26.8%).

12.6 Static and Dynamic: The Equilibrium You Have to Keep Moving

Every example so far has had the same shape. One side owns something static — an extra pawn, a better structure, the exchange — and the other side owns something dynamic — tempi, open lines, active pieces, a king to aim at. The engine adds them up and gives one number. But the two kinds of asset behave very differently over time, and that difference is the most important idea in this chapter.

📐 Definition — static and dynamic factors: a static factor is a feature of the position that will survive a quiet move by either side: material, pawn weaknesses (isolated, doubled, backward pawns), passed pawns, the bishop pair. A dynamic factor is one that the opponent can remove by normal play if you give him time: a development lead, a mobility advantage, pressure on the king zone, available checks and captures. dynamics.static_factors() and dynamics.dynamic_factors() report both families, White minus Black.

📐 Definition — compensation episode: in this chapter's data, a game contains a compensation episode when, from ply 16 onwards, one side is at least two points of material down (1/3/3/5/9) on four consecutive plies while its own engine evaluation stays at −1.00 or better on all four. We call it balanced compensation when the evaluation at the start of the episode is between −1.00 and +1.00 — the engine says the material is paid for, but no more.

The principle — dynamic equilibrium. When your compensation is dynamic and your opponent's advantage is static, the clock is on his side. If you play quietly, his extra material stays and your activity fades; the evaluation drifts his way without either of you making a mistake. To keep the balance you must keep creating — new threats, new targets, the next lever — so that the dynamic factors renew themselves. That is why passive defence of a sacrificed position so often loses, and why the defender in a dynamic position is told to "keep the initiative" rather than "consolidate". Conversely, if you own the static asset, your job is to neutralise the dynamics: trade the active pieces, close the lines, and wait.

Is this true in practice, or just a nice story? The script 02_game_scan.py replays 83,476 real games with engine evaluations on every move — Lichess blitz and rapid (server-analysed, balanced, up to 4,000 per band) and OTB classical broadcast games (relay evaluations, both FIDE ratings, up to 4,000 per band) — and records the first compensation episode in each. 05_compensation.py then asks what happened next.

# 02_game_scan.py - the compensation detector (WIN = 4 plies)
for t in range(15, n):
    for side, sg in (("w", 1.0), ("b", -1.0)):
        m_ok = (mat[t:t + WIN] * sg <= -2).all() and len(mat[t:t + WIN]) == WIN
        if m_ok and window_ok(ev * sg, t, lambda s: s >= -100):
            ...  # record side, ply, deficit, own eval now, 10 and 20 plies later, result
== Compensation episodes: share of games, deficit, phase ==
Lichess blitz: 3,752 of 31,979 games (11.7%); median deficit 3; median start ply 46; phase: middlegame 67%, endgame 26%, opening 7%
Lichess rapid: 3,028 of 26,179 games (11.6%); median deficit 3; median start ply 46; phase: middlegame 65%, endgame 28%, opening 7%
OTB classical: 3,380 of 25,318 games (13.4%); median deficit 2; median start ply 58; phase: middlegame 64%, endgame 32%, opening 4%

== Split by how much compensation the engine saw at the start ==
          set                       kind    n  share  median_start  score        ci  adj
Lichess blitz    balanced (-1.00..+1.00) 2108   56.2           0.0   56.6 54.5-58.7  6.8
Lichess blitz more than enough (> +1.00) 1644   43.8         523.5   75.3 73.2-77.4 25.4
Lichess rapid    balanced (-1.00..+1.00) 1717   56.7           0.0   56.7 54.3-59.0  6.8
Lichess rapid more than enough (> +1.00) 1311   43.3         543.0   77.5 75.1-79.6 27.5
OTB classical    balanced (-1.00..+1.00) 2246   66.4           0.0   49.0 46.9-51.0 -0.5
OTB classical more than enough (> +1.00) 1134   33.6         466.0   85.8 83.7-87.8 27.5

balanced compensation: fate 20 plies later (games still in progress)
fate           burnt out (<= -2)  still balanced  crashed through (>= +2)
Lichess blitz               29.5            37.0                     33.5
Lichess rapid               30.0            34.0                     36.0
OTB classical               22.4            58.3                     19.3

About one game in eight contains a stretch where one side is two or more points down and the engine does not mind. Many of these are sacrifices; some are positions where the material-up side has just grabbed something and is about to be punished ("more than enough" compensation, median start +4.66 to +5.43 — those sides naturally score 75–86%). The interesting group is balanced compensation: the engine says the position is level, the material says one side is ahead.

Balanced compensation: score and fate

📊 Figure (described): Left — the score of the side with balanced compensation, minus its Elo expectation, by rating group and set (95% intervals): about +4 to +9 points in Lichess blitz and rapid at every level, about zero (−0.4 to −0.8) in OTB classical. Right — the compensation side's own evaluation 20 plies later: in OTB classical games 58% of positions are still balanced, 22% have burnt out (≤ −2.00) and 19% have crashed through (≥ +2.00); in Lichess games the three outcomes are roughly a third each.

Two findings.

Online, the side with the initiative outscores the side with the material. In Lichess blitz and rapid the balanced-compensation side scores 56.6% and 56.7% — about +6.8 points above its Elo expectation — when the engine says the position is equal. The effect is positive in every rating group (from +3.8 to +9.3 points), though the smallest groups have wide intervals. In OTB classical games the same situation produces 49.0% (n = 2,246; −0.5 points), squarely what the evaluation predicts. A plausible reading: dynamic positions are hard to defend quickly. With a few minutes on the clock, the side with the extra material has to find precise defensive moves (12.4) every move; the side with the initiative only has to keep making threats. In a classical game the defender has the time to find them.

Balanced compensation rarely stays balanced — except in slow, strong games. Twenty plies later, Lichess positions have split roughly evenly three ways: a third still level, a third burnt out, a third crashed through. In OTB classical games 58.3% are still balanced (63.6% at FIDE 2000+). Our volatility measure points the same way: over the next ten plies, the median absolute change in evaluation is 2.1 to 4.1 times larger in compensation positions than in level, materially equal positions at the same level and speed (for example 50 vs 24 cp in OTB classical at 2000+, 382 vs 95 cp in Lichess blitz under 1400). Dynamic positions are volatile. That is the data's version of "dynamic equilibrium": the balance exists, but it is held up by activity, and either side's next decision can knock it over.

One more detail that the output reveals: in 35–49% of balanced-compensation episodes the starting evaluation is exactly 0.00, and about 37–41% of them begin in the endgame. An engine score of exactly 0.00 in a position where one side is two points down is usually the signature of a forced draw — a perpetual check (as in Tal–Petrosian) or a fortress — rather than of a long-term balance; we did not classify the individual cases, so take that as a description of the pattern, not a count of perpetuals.

⚠️ Common pitfall: "consolidating" a sacrificed position. When you are the side with the compensation, a quiet move that tidies up your position is usually a move that gives your opponent time to return his extra piece to play. The data say the balance is fragile; the games (Tal–Petrosian at move 21, Carlsen's ...Qa5 and ...Qxa3 in 12.3) say what to do: every move should create a threat, win a tempo, or open the next line. The mirror-image pitfall for the material-up side is "grabbing more" (21.Nxa8) instead of neutralising the initiative (21.Qh7+, or 17.Qc7 offering the queen trade).

🔄 Check your understanding 1. Classify as static or dynamic: (a) a passed d-pawn, (b) a rook on the seventh rank, (c) a lead of three tempi, (d) the bishop pair, (e) a queen check available on every move. 2. In OTB classical games the balanced-compensation side scored 49.0%; in Lichess blitz 56.6%. Give one chess reason and one data reason that could explain the difference.

Answer

  1. (a) static; (b) mostly dynamic — it can be challenged or traded, though a rook that cannot be dislodged behaves statically; (c) dynamic; (d) static; (e) dynamic.
  2. Chess reason: defending a dynamic position requires precise, often unnatural moves, which takes time — scarce in blitz. Data reasons: Lichess evaluations come from server analysis of games someone chose to analyse (self-selection), the OTB relay evaluations come from varying engines and depths, and rating pools and rating gaps differ — any of these could move the numbers by a few points. The +6.8-point gap is large relative to its interval (54.5–58.7%), so it is unlikely to be noise alone.

12.7 When You Are Worse: How Often Do Defenders Save the Game?

A defender's motivation depends on a number most players have never seen: if I am clearly worse, how often do I still save the game? Let us measure it.

📐 Definition — stable −2: a side has a stable −2 when its own engine evaluation is −2.00 or worse on four consecutive plies (fewer only if the game ends). For each game we take the first side to reach a stable −2 — the trailing side — and record whether it lost, drew or won. Saved means drew or won. (A −2.00 evaluation corresponds to a 32.4% winning chance on the Lichess win% scale of Appendix D.)

The four-ply window matters: a single −2 reading is often just the moment between a capture and the recapture. Four consecutive readings mean the opponent has had two moves to cash in and the deficit is real.

== The trailing side's fate, by set and band (saved = draw or win) ==   (04_comebacks.py, selected rows)
          set      band     n  saved  saved_ci  won  drew  score   adj
Lichess blitz     <1200  3844   31.4 30.0-32.9 29.5   1.9   30.5 -19.4
Lichess blitz 1600-1799  3828   26.7 25.3-28.1 23.4   3.3   25.1 -24.7
Lichess blitz     2400+  3778   24.6 23.3-26.0 18.4   6.2   21.5 -27.8
Lichess rapid     <1200  3857   29.8 28.4-31.3 26.7   3.1   28.3 -21.3
Lichess rapid 1400-1599  3887   26.7 25.3-28.1 23.5   3.2   25.1 -24.4
Lichess rapid     2400+   332   19.0 15.1-23.5 12.7   6.3   15.8 -33.1
OTB classical 1400-1599  3562   24.3 22.9-25.7 10.4  13.8   17.3 -26.7
OTB classical 1800-1999  3381   21.9 20.6-23.3  7.6  14.3   14.8 -24.0
OTB classical 2200-2399  2959   15.9 14.6-17.3  4.3  11.7   10.1 -27.2
OTB classical     2400+  2324   16.8 15.3-18.4  3.1  13.6   10.0 -30.7

Save rate after a stable −2, by band

📊 Figure (described): The share of games in which the first side to reach a stable −2 still drew or won, by rating band, for Lichess blitz, Lichess rapid and OTB classical, with 95% intervals. All three lines slope gently down with rating: roughly 30% of trailing sides save the game below 1200 online, about 25% at 2000+ online, and 16–17% at OTB 2200+.

Read the table slowly; it is one of the most practically useful in the book.

Being clearly worse is not being lost. At every level we measured, between one in six and one in three trailing sides still saved the game. In Lichess blitz the figure never falls below 24%, even at 2400+.

How you save the game changes with level. Online, saves are mostly wins — 29.5% of trailing sides under 1200 in blitz go on to win, and only 1.9% draw. In OTB classical at 2400+, only 3.1% win, but 13.6% draw. Strong players rarely blunder a winning position back, but they do let the defender reach a drawn endgame or a fortress. The defensive skill that pays at the top is the holding skill (the endgame chapters of Part III); the defensive skill that pays at club level online is staying in the game until the opponent errs.

Not every game reaches a stable −2. Online, about 95% of games do (most decisive games end with one side clearly losing). In OTB classical play the share falls from 94.3% under 1200 to 58.3% at 2400+ — at the top, four games in ten never see either side two pawns worse for two full moves.

How does this compare with the reference tables' "the eventual winner was ever losing" (winner's win% ≤ 30 at some point: 47.1% of decisive Lichess blitz games, 15.9% of decisive broadcast classical games)? That measure counts a single bad reading by the eventual winner; ours requires four in a row and looks at the first side to trail, whatever the result. Different definitions, same message: the stronger and slower the game, the less often a clearly worse position turns around — and even then, it happens.

Static deficits, dynamic deficits

At the end of the four-ply window we also recorded the trailing side's material. Is a deficit that is pure material (static) harder to save than one where material is level and the problem is the position (dynamic)?

== By deficit type at the end of the 4-ply window (trailing side's material balance) ==
          set        deficit  share     n  saved  saved_ci  won  score   adj
Lichess blitz  material down   41.2 12575   25.2 24.4-25.9 22.3   23.7 -25.9
Lichess blitz material level   56.0 17099   28.3 27.6-29.0 24.2   26.2 -23.4
Lichess blitz    material up    2.8   857   19.1 16.6-21.9 16.6   17.9 -31.9
Lichess rapid  material down   43.8 11006   25.2 24.4-26.0 22.0   23.6 -26.0
Lichess rapid material level   53.8 13526   27.0 26.3-27.8 22.5   24.7 -24.8
OTB classical  material down   25.2  5083   18.1 17.0-19.2  7.8   12.9 -26.4
OTB classical material level   71.6 14445   21.7 21.0-22.4  7.4   14.5 -24.7
OTB classical    material up    3.2   655   18.0 15.3-21.1  7.3   12.7 -28.7

Save rate by deficit type

📊 Figure (described): Save rate after a stable −2, split by the trailing side's material at that moment — down two or more, level (within one point), or up two or more — for each set, with sample sizes. In all three sets the "material level" bars are the tallest (28.3% blitz, 27.0% rapid, 21.7% OTB classical) and the "material up" bars the shortest.

A positional −2 is saved a little more often than a material −2 (by 3.1 points in blitz, 1.8 in rapid, 3.6 in OTB classical; all three intervals separate). That fits the static/dynamic picture: a deficit made of dynamic factors can shrink if the opponent fails to use it, while a missing piece stays missing. The smallest group — trailing while material up, which means the opponent has more than enough compensation — is the hardest to save: an attack in full flow. Notice also how different the OTB mix is: in classical games 71.6% of stable −2s arrive with material still level, against about 54–56% online. At club speed, positions are more often lost by dropping material; in slow strong games they are more often lost by being outplayed.

⚠️ Common pitfall: resigning (or mentally resigning) at −2. In our Lichess rapid data a 1400–1599 player who reaches a stable −2 still saves the game 26.7% of the time [25.3–28.1]. If you are the trailing side, your job is to maximise that number: keep pieces on, keep creating threats, make every move a question. Case Study 2 shows the single strongest predictor we found: how long the game goes on.

🔄 Check your understanding 1. Define a "stable −2" and say why the definition needs four plies rather than one. 2. At which level do trailing sides save the game most often, and how do they usually save it? 3. Which is saved more often — a material −2 or a positional −2 — and why might that be?

Answer

  1. The side's own evaluation is −2.00 or worse on four consecutive plies. A single reading is often a half-finished exchange; four readings give the opponent two moves to cash in, so the deficit is real.
  2. Under 1200 online (31.4% in Lichess blitz), and mostly by winning — the opponent blunders back. At the top of OTB play saves are rarer (about 16–17%) and mostly draws.
  3. A positional (material-level) −2 is saved a few points more often (e.g. 21.7% vs 18.1% in OTB classical): dynamic deficits can evaporate if the opponent does not use them, while missing material stays missing.

12.8 How the Engine Sees Dynamic Positions

We have used Stockfish's evaluation as the referee throughout. In dynamic positions the referee has a weakness worth understanding: the evaluation depends on depth more than it does in quiet positions. The engine's static evaluation (its neural network, NNUE) can only judge the position in front of it; the search has to find the forcing lines that turn activity into material or mate. If the decisive line is twelve plies long and the search sees ten, the number is wrong.

06_engine_depth.py tests this on 120 middlegame positions from the OTB classical games of our scan (average FIDE 2000+): 60 balanced-or-better compensation positions and 60 level positions (material equal, |eval| ≤ 1.00), each evaluated at depths 8, 12, 16 and 20.

== Depth sensitivity: compensation vs level middlegame positions (OTB classical, avg FIDE >= 2000) ==
kind                             compensation  level
n                                        60.0   60.0
mean_abs_d20_d8                          86.2   17.1
median_abs_d20_d8                        50.5   13.0
mean_abs_d20_d12                         42.2   13.7
median_abs_d20_d12                       24.5   11.0
mean_abs_d20_d16                         23.6    8.6
best_move_d12_ne_d20_pct                  6.7   18.3
verdict_class_change_d8_d20_pct          15.0    8.3

mean eval by depth (compensation side's view / White's view for level):
                e8    e12    e16    e20
kind                                   
compensation  74.0  116.0  130.0  142.0
level         30.0   28.0   26.0   25.0

Depth sensitivity of Stockfish 19 evaluations

📊 Figure (described): How far the evaluation at depth 8, 12 and 16 lies from the depth-20 evaluation, for 60 compensation positions (orange) and 60 level positions (blue); solid lines are means, dashed medians. At depth 8 compensation positions are off by 86 cp on average (median 51), level positions by 17 (median 13); the gap narrows with depth but is still nearly three to one at depth 16.

🤖 Engine check — what the depth study means: in level positions Stockfish 19 at depth 8 is already within about 13 cp (median) of its depth-20 opinion. In compensation positions the median shift is 51 cp and the verdict class (below −1, between, above +1) changes in 15.0% of cases between depth 8 and 20, against 8.3% for level positions. And the shift has a direction: the compensation side's mean evaluation climbs from +0.74 at depth 8 to +1.42 at depth 20 — deeper search finds more of the attack. Interestingly, the best move changes less often in compensation positions (6.7% vs 18.3% between depths 12 and 20): dynamic positions tend to have one forcing move, and the engine finds it early; what takes depth is working out how much it is worth. Praggnanandhaa–Carlsen (12.3) went the other way — −0.18 at depth 8, +0.26 from depth 16 — so the rule is not "deeper favours the attacker" but "in dynamic positions, do not trust a shallow number in either direction".

Two limits. First, these 120 positions were selected by the relay evaluation (which itself comes from deep searches of varying engines), so some of the upward drift is regression towards that selection — the effect is real in direction but its size is approximate. Second, sixty positions per group is a small sample; the medians are more trustworthy than the means. The practical rule stands: when you check a sacrifice or an attack with an engine, give it depth — at least 20 — and look at two depths. The phone app's instant evaluation is fine for a quiet position and unreliable for a burning one. Chapter 26 builds this into the game-review routine, and Chapter 32 returns to depth when it measures accuracy at scale.

📋 Try it — Engine analysis: take the hook position (Tal–Petrosian after 20...Qc5, FEN in the diagram) and evaluate it at depths 8, 12, 16, 20 and 24 with multipv=3. At what depth does 21.Qh7+ separate from 21.Nxa8? Is this a "dynamic" or a "static" position by the definitions of 12.6?

Answer

In our run, at depth 20 the top three were 21.Qh7+ (+1.01), 21.Nxa8 (0.00) and 21.h3 (0.00); at depth 24, 21.Qh7+ (+0.80), 21.h3 (0.00), 21.Nxa8 (0.00). Your shallower depths will show whether the engine "sees" the perpetual after 21.Nxa8 early (it is a short forcing line, so it usually does). The position is dynamic: White is a point of material down before taking on a8, and the evaluation is driven by king safety, available checks (Black has five checking moves if it is Black's turn) and tempi.

🔄 Check your understanding 1. Why do evaluations of dynamic positions change more with depth? 2. The best move changed less often with depth in compensation positions than in level ones. Why?

Answer

  1. The value of activity is realised through forcing sequences that the search must find; until the search is deep enough, the network's static judgement of the position can be well off (median 51 cp at depth 8 in our compensation sample vs 13 cp in level positions).
  2. Dynamic positions usually have one forcing continuation, which the engine finds quickly; what needs depth is the size of its payoff. Quiet positions have several near-equal moves, so the top choice flips more often.

12.9 Attack and Defence at Different Levels

Put the chapter's numbers side by side and a picture emerges of how attack and defence change as players improve.

What we measured Club level online (Lichess <1400) Strong online (Lichess 2000+) OTB classical 2000+ (FIDE)
Development lead ≥ 2 after move 12: how often 21.7–26.2% of games 13.6–14.4% 10.8–11.4%
… score above Elo expectation for the leader +4.2 to +6.5 pts +2.0 to +4.8 pts +0.5 to +3.2 pts
Balanced compensation: score above expectation (blitz / rapid) +6.8 / +6.1 pts +5.9 / +3.8 pts −0.4 pts
After a stable −2: trailing side saves the game 28.5–31.4% (blitz) 24.1–25.0% (blitz) 15.9–20.1%
… of which by a draw 1.9–2.0 pts of it 3.5–6.2 pts 11.7–13.6 pts

At 1200 attacks are cheap and defence is the scarce skill. Development leads arise in a quarter of games and are rewarded; pieces get left loose, and the attacker's first threat often wins material directly. The most valuable thing a 1200 player can learn from this chapter is not an attacking pattern but a defensive habit: when you are attacked, look first for the trade of the most dangerous piece and for a counter-threat; when you are clearly worse, keep the game complicated — almost a third of trailing sides at this level go on to win.

At 1600–2000 the attack needs the conditions. Players defend well enough that an attack with one or two of the four conditions usually fizzles, while an attack with three of them usually works. This is the level where counting (attackers vs defenders, tempi) pays most, and where the static/dynamic decision — do I sacrifice for the initiative, or keep the material and neutralise? — decides many games.

At 2200+ and in classical OTB chess the development lead is worth very little (strong opponents neutralise it), dynamic compensation is worth exactly what the engine says it is worth, and a clearly worse position is saved about one time in six — mostly by drawing. Here the deciding skill is precision under pressure: Steinitz's 33.Kd3 (missed), Tal's 17.Qc7 (missed), Abdusattorov's 33.Bxe6 (found). Each was a precise, unglamorous decision in a violent position.

🎭 Composite data: Lena's games are real Lichess games played by anonymous players at her rating, assembled into one "player" so we can demonstrate the method on your own games.

Lena: So if I'm worse, I should just keep throwing things at him?

Grace: Not throwing. Making him answer. There's a difference between a threat and a hope.

Lena: How do I tell?

Grace: A threat is something he has to spend a move on. If he can ignore it and keep attacking, it was a hope.

Dev: For what it's worth, I ran the new module over your analysed games. You reached a stable −2 first in 95 of them and saved 27.4%. The whole 1400–1599 rapid population saves 26.7%.

Lena: So I'm… average at not losing.

Grace: Which means there's room. Most of those saves were wins — your opponents blundered back. The next step is making them do it more often.

🪞 Learning check-in: Think of your last three games in which you were clearly worse. For each, answer: (1) Did I look for a trade of the most dangerous attacking piece? (2) Did I create at least one threat my opponent had to answer? (3) Did I give back material when it would have stopped the attack? (4) When did I mentally give up — and was the engine as pessimistic as I was at that moment? If you cannot remember, that is itself the finding: start writing one line after every game about the moment you felt lost. Chapter 12's data say one in four of those games is still alive.


Spaced Review

Before you read the answers, try each question from memory.

  1. (Chapter 4 — King Safety) What three components make up the book's description of a king's safety, and which of them did dynamics.attack_conditions() reuse?
  2. (Chapter 6 — Material Imbalances) The exchange sacrifice in Chapter 6's opening example (Reshevsky–Petrosian) was positional; Carlsen's ...Rxc3 in 12.3 was an attacking one. What did each buy with the exchange?
  3. (Chapter 7 — Prophylaxis) How is 33.Bxe6 in Abdusattorov–Gukesh a prophylactic move?
  4. (Chapter 11 — Combinations) Which of the four conditions for an attack correspond to the "prerequisites" of a combination?
Answers
  1. The pawn shelter (shelter points), the king zone and the pressure on it (attackers vs defenders, attack weight), and open files next to the king. attack_conditions() uses all three: zone_pressure for local superiority, open_files_near_king for open lines, shelter_score for the weakened shelter — imported directly from outpost.king_safety.
  2. Petrosian's ...Re6 bought the d5 square for his knight and the removal of White's light-squared bishop — a static gain (a permanent blockade square, a neutralised attack). Carlsen's ...Rxc3 bought open lines and a target near White's king — dynamic gains that had to be used.
  3. It answers the question "what does my opponent want?" (Chapter 7's null-move test): Black wanted ...Nf4 to bring the knight into the attack. White removed the piece before the plan could be executed.
  4. Development lead and local superiority are the "force" prerequisites; open lines and a weakened shelter are the "geometry" prerequisites. A combination is often the moment the four conditions are converted into something concrete.

Project Checkpoint: dynamics.py

🎭 Composite data: Lena's games used below are real Lichess games played by anonymous players at her rating, assembled into one "player".

Dev's Outpost package can already describe a king (Chapter 4), the material balance (Chapter 6) and what the opponent wants (Chapter 7). This chapter adds project/outpost/dynamics.py, which answers the three questions of Chapter 12: can I attack? how do I defend? is the balance static or dynamic? Its public functions:

Function Returns
development_count(board, color), development_lead(board) the chapter's development count (0–5) and White − Black lead
attack_conditions(board, attacker) the four conditions (booleans), their count, and the raw readings
static_factors(board) / dynamic_factors(board) material, pawn weaknesses, passed pawns, bishop pair / development, mobility, king pressure, checks, captures (W − B)
defensive_resources(board, depth=None, top=6) the side to move's legal moves classified as trade / check / block / king / return / other, optionally ranked by Stockfish
game_dynamics(game, evals=None) one row per ply with the static and dynamic readings
trailing_episode(evals) / compensation_episode(evals, materials) the "stable −2" and "compensation" detectors of 12.6–12.7
describe(board) a three-line summary

The core of the defender's classifier is a few lines: a capture counts as a trade if it removes a piece that attacks the king zone now or after one move of its own (the knight on e6 in Abdusattorov–Gukesh did not yet attack the zone, but one jump to f4 would).

def defensive_resources(board, depth=None, top=6):
    b = _board(board)
    me = b.turn
    zone = king_safety.king_zone(b, me)
    attackers = _potential_attackers(b, me, zone)
    ...
    for mv in b.legal_moves:
        if b.is_capture(mv) and mv.to_square in attackers:
            cat = "trade"
        elif b.gives_check(mv):
            cat = "check"
        ...

code/project_checkpoint.py runs it on three cases:

1. Tal - Tringov 1964 after 12...dxe5 (White to move)
White attack conditions 3/4: development, open_lines, weak_shelter (dev lead +4, 2 attackers vs 5 defenders near the king)
Black attack conditions 0/4: none (dev lead -4, 1 attackers vs 5 defenders near the king)
static (W-B): material -1, pawn_weaknesses -2, passed_pawns +0, bishop_pair +0 | dynamic (W-B): development_lead +4, mobility +20, king_pressure +5, checks +3, captures +2

2. Abdusattorov - Gukesh 2026 after 32...b5 - the defender's options (Stockfish 19, depth 18, top 5)
 san  uci category   eval
Bxe6 c4e6    trade  -89.0
 Bb3 c4b3    other -237.0
 Nf5 g3f5    other -241.0
 Ba2 c4a2    other -267.0
 Rh4 h1h4    other -643.0
   counts by category: {'other': 34, 'king': 2, 'return': 2, 'trade': 1}

3. Lena (composite, Lichess rapid ~1400): 203 games with evaluations
   a stable -2 happened in 198 games; Lena was the first to trail in 95
   when Lena trailed first: saved 27.4% (won 25.3%), n = 95
   when her opponent trailed first: Lena still drew or lost 31.1%, n = 103
   reference (Lichess rapid, 1400-1599 band, 04_comebacks.py): trailing side saved 26.7% [25.3-28.1]
   compensation episodes: 16 games; Lena was the side down material in 8
   95% interval for Lena's save rate: 19.4-37.1%

The first block shows the material/dynamics contrast of Tal–Tringov in one line: material −1 for White, every dynamic factor positive. The second shows the classifier finding the only good defensive move in a real position — and the engine confirming it (Stockfish 19 at depth 18, −0.89 against −2.37 for the next move). The third is the kind of personal statistic the module exists for: Lena's save rate (27.4%) is indistinguishable from her population's (26.7%) — her interval, 19.4–37.1%, comfortably contains it — but the mirror statistic is more interesting: in 31.1% of the games where her opponent trailed first, Lena failed to win. Her "converting" problem is bigger than her "defending" problem, which is exactly what Chapter 25's training-plan generator will pick up. Chapter 13's clock.py measures time usage, and combining it with these episodes answers a natural next question (was the trailing side short of time?); and Chapter 26's review.py will call trailing_episode() and compensation_episode() to flag the turning points of a single game.


Chapter Summary

Principle What it means at the board Evidence in this chapter
Attack when the conditions exist Count: development lead, attackers vs defenders, open lines, shelter. Three of four = go Tal–Tringov (lead +4, three conditions, #5); development-lead data by band
Development leads are temporary Use them with threats now, or they vanish Lead ≥ 2 worth +4 to +7 pts below 1400, ≈ 0 at OTB 2400+
Sacrifice material for time only if the pieces are ready Count the pieces that can use the new line within two moves Carlsen's ...Rxc3 (+0.26 at depth 20/24 after it: compensation nearly enough)
Defend with the five tools Trade the key attacker; close lines; bring defenders/king; return material; counterattack Abdusattorov's 33.Bxe6 (only move, −0.80 vs −2.85); Lasker's queen raid
The counterattack is the strongest defence Ask "whose attack is faster?" — a tempo beats material in a race Tal–Petrosian: 21.Qh7+ +0.80 vs 21.Nxa8 0.00 (perpetual)
Dynamic equilibrium must be maintained The side with compensation must keep creating; the side with material must neutralise Balanced compensation: +6.8 pts online, −0.5 OTB classical; still balanced 20 plies later in 34–37% of online and 58% of OTB classical episodes
Worse is not lost Keep the game going; most saves come late Trailing sides save 16–31% of games depending on level and speed
Shallow evals lie in dynamic positions Check attacks and sacrifices at depth ≥ 20, at two depths Median depth-8 error 51 cp (dynamic) vs 13 cp (level)

Decision checklist — attacking or defending in the middlegame

  1. Who has more pieces near the king that matters, and who has more tempi in hand?
  2. How many of the four attack conditions hold — for me, and for my opponent?
  3. Is my advantage static or dynamic? If dynamic: what is my next threat? If static: which enemy piece makes his dynamics work, and can I trade it?
  4. If I am attacked: which of the five tools is available this move — trade, block, bring a defender, give back material, counterattack?
  5. In a race: does my move come with tempo (check, capture, threat)? If not, is his attack slower than mine?
  6. If I am clearly worse: am I making the game long and keeping threats on the board?
  7. Before trusting an engine verdict on a sharp position: is it depth 20 or more, and does a second depth agree?

What's Next

Every critical decision in this chapter — Steinitz's 33rd move, Tal's 17th and 21st, Lagno's 35th in Case Study 1 — was made under pressure, and several of them with the clock running down. Chapter 13 turns to that pressure directly: how to find the critical moments of a game, how time trouble changes error rates at every level, and how to make good decisions when you cannot calculate everything.