Chapter 14 Instructor Notes: Essential Endgames
Chapter text · Case study 1 · Case study 2 · Exercises · Quiz · Key takeaways
Part III opens with the smallest set of reference positions that carries the most weight: K+P vs K (square, opposition, key squares), the Lucena and Philidor, Tarrasch's rule, and the theoretical draws. Everything is verified with the tablebase, and the chapter goes one step further by building a K+P vs K table from scratch. Lena's hook line — "the pawn race was something I could just count" — is the sentence to repeat all session.
Learning objectives
The chapter states its aim after the hook: to know which positions you can count — won, drawn or lost no matter how cleverly anyone plays — and therefore which exchanges to seek and which to avoid. Concretely, students should be able to:
- Use the book's endgame definition (non-pawn material ≤ 26) and say how often real games reach an endgame, a pawn ending, a rook ending and R+P vs R.
- Explain what a tablebase is (WDL, DTZ, DTM, cursed win), how retrograde analysis builds one, and why it differs from an engine.
- Apply the rule of the square, the opposition and key squares; explain why a rook pawn has none.
- Win the Lucena by building a bridge and draw the Philidor with the third-rank defence followed by checks from behind.
- State and justify Tarrasch's rule, and the a7-rook drawing set-up.
- Recognise the theoretical draws: K+B / K+N / K+N+N vs K, bishop and wrong rook pawn, queen vs bishop- or rook-pawn on the seventh.
- Compare theory with practice: how often real players at different levels get these endings right.
Timing plan
75-minute session
| Minutes | Activity | Notes |
|---|---|---|
| 0–8 | Hook: Lena's 67.Qxa3+ | Ask "trade queens or not?"; reveal 14 of 28 moves win before, all 9 after. |
| 8–15 | 14.1: how often endgames happen | Reach by band; the "300 games" arithmetic. |
| 15–30 | 14.2: square, opposition, key squares | Board demo (below); the solver's key-square output. |
| 30–45 | 14.3 Lucena | Productive struggle first, then the bridge. |
| 45–58 | 14.4 Philidor and the passive rook | 8 of 16 Black moves draw; 1...Rb8? loses. |
| 58–68 | 14.6 Tarrasch pair; 14.7 quick tour of draws | One slide per draw. |
| 68–75 | 14.8 headline + exit ticket | 34.0% of won K+P vs K not won below 1200. |
3-hour block
| Minutes | Activity | Notes |
|---|---|---|
| 0–15 | Hook | As above. |
| 15–35 | 14.1 data | Endgame families; ACPL by phase table and its pitfall. |
| 35–70 | 14.2 on boards in pairs | B1, B2 and the "Try it" (Kd5/d4 vs Kd7). |
| 70–100 | Lucena and Philidor | Pairs play each position out against each other; one defends, one attacks, then swap. |
| 100–110 | Break | |
| 110–130 | 14.5 masters: Capablanca–Menchik | Five result changes in nine moves. |
| 130–150 | 14.6–14.7 | Tarrasch pair, a7 set-up, wrong rook pawn, Q vs pawn on the seventh. |
| 150–170 | Case Study 1 (Le Quang Liem–Donchenko) | Groups find the winning king moves at move 69. |
| 170–180 | Exit ticket |
Key numbers and games
| Item | Value as quoted | Where |
|---|---|---|
| Lena (composite), Lichess rapid 10+0, move 67 | 14 of 28 moves keep the win; after 67.Qxa3+ Kxa3 all 9 win; SF19 +7.53 (d18), +8.46 (d24); 112 seconds left | Hook |
| Lena's technique | Mate in 16 plies available after 72.h8=Q; she took 40 | Hook |
| Endgame reach | Lichess blitz 51.5% (n = 394,946), rapid 48.4%, OTB classical 63.0% (n = 236,556); blitz 45.4% (<1200) → 60.3% (2400+) | §14.1 |
| Pass-through among endgame games | Pawn ending 9.5% / 10.0% / 9.4%; rook-only 16.9% / 17.0% / 21.2%; R+P vs R 1.11% / 1.27% / 2.05% (blitz / rapid / OTB) | §14.1 |
| ACPL by phase | Lichess blitz <1200: 62.4 / 113.5 / 69.5; OTB 2400+: 7.2 / 18.7 / 21.2 (opening / middlegame / endgame) | §14.1 |
| K+P vs K table | 163,328 positions White to move, 76.5% won; Black to move 168,024, 58.1%; longest route 37 plies; 50/50 agree with Syzygy | §14.2 |
| Computed key squares | e3 → d5, e5, f5; e4 → d6, e6, f6; e5 → d6–f7; a4 → none | §14.2 |
| Opposition (Ke4/e3 vs Ke6) | White to move: draw; Black to move: win (DTM −36 for Black) | §14.2 |
| Lucena | 1K1k4/1P6/8/8/8/8/r7/2R5 w: win, DTZ 15, DTM 41; 12 of 14 moves win |
§14.3 |
| Philidor | 4k3/R7/1r6/4PK2/8/8/8/8 b: draw; 8 of 16 Black moves hold |
§14.4 |
| Masters (8 collections, 18,746 games) | R+P vs R 137 probed games, 86.1% match theory; K+P vs K 28 games, 96.4% | §14.5 |
| Capablanca–Menchik, Hastings 1929 | 55...Ra6?, 56.Rd7?, 57...Ra6?, 62.Ke8?, 63...Ra7+? — five result changes; SF19 +0.32 (d20) / +0.17 (d24) at the rook ending's start | §14.5 |
| Lasker–Steinitz 1896 | Only 65...Rd8 draws; 65...Re5? and Lasker converts | §14.5 |
| Tarrasch pair | Rook behind: win, SF19 +4.61 (d16) / +5.33 (d24); reversed: draw, +0.06 / 0.00 | §14.6 |
| K+B+N vs K | DTZ 57, DTM 57 plies from the test position | §14.7 |
| K+P vs K in practice | Lichess blitz/rapid: 20.4% of theoretical wins not won (8.2 points on time), 13.0% of draws lost; OTB about 2% | §14.8 |
| By band | Wins not won 34.0% below 1200 (n = 514) → 13.0% at 1800–1999 | §14.8; Case Study 2 |
| R+P vs R sample | OTB classical: draws held 88.4% (n = 95), wins converted 92.5%; Lichess blitz/rapid: draws held 47.4% (n = 97), wins converted 73.1% | §14.8 |
| Pawn ending one pawn up (OTB) | 81.2% (1400–1599) → 43.9% (2400+), draws 49.8% | §14.8 |
| Le Quang Liem–Donchenko, World Cup 2025 | 69...Ke2? (Kg1/Kg2/Kg3 win); only 70.Ra6/Rc6/Rd6 draw; 33 of 34 top-level R+P vs R games matched theory | §14.5; Case Study 1 |
| Spoiled K+P vs K wins | 84 of 200 sampled were real K+P vs K errors; 21+ plies to promote converted 52.4% (n = 147) | Case Study 2 |
Threshold concepts and likely misconceptions
Threshold concept (the chapter's own 🚪 box): an endgame position is not "a pawn up"; it is won, drawn or lost, and the label is exact. Once students see endings that way, the question at the board becomes "which reference position am I heading for?"
Misconceptions to expect:
- "Trading queens when ahead is cowardly." Lena's hook is the counter-example — but D4 makes the limit explicit: trade into a won ending, not any ending.
- "76.5% of K+P vs K positions are won, so a pawn up is usually winning." That counts every legal arrangement equally; real games are different (36.0% of the K+P vs K positions real Lichess games reach are drawn).
- "The side to move has the opposition." It is the side not to move.
- "Push the pawn." In K+P vs K and in the Lucena alike, the king (or rook) move comes first.
- "The back rank is the safe square for the defending rook." 1...Rb8? loses the Philidor.
- "+5 means won." The engine scored the Tarrasch win +5.33 and could do the same for a fortress; with seven men, probe the table.
- "Strong players play pawn endings worse" (43.9% at 2400+). It is the defender who changes (Exercise D2).
How the four tracks use this chapter
- ♟️ Improver: 14.2–14.6 on a real board, every 📋 exercise, and the summary table. Lena is their stand-in; the below-1200 K+P vs K number (34.0%) is their motivation.
- 📊 Analyst: 14.1 and 14.8, Case Study 2. Stress the selection effects: OTB results reflect resignation and agreement as soon as K+P vs K arises; the R+P vs R samples are 150 games per pool; ACPL by phase is distorted by the ±1000 clip and late clocks.
- 🏆 Competitor: 14.4–14.6 and 14.8 "with a clock in mind" (the chapter's phrase), Case Study 1 (two minutes at move 69), Exercise B7, D3, D5.
- 💻 Developer: the Project Checkpoint builds
outpost/tablebase.py:probe,result_white,move_table,best_line,check_line, the 21-positionESSENTIAL_POSITIONSlibrary withverify_library(), and the offlineKPKSolver. Exercises E2 (local Syzygy files) and E3 (extend the solver) are natural projects.
Running the code
| Script | What it shows | Data / runtime |
|---|---|---|
code/01_kpk_oracle.py |
Builds the K+P vs K table, key squares, 50-position Syzygy check | Offline solver (the checkpoint output reports it built in 2.4 s) plus 50 cached probes |
code/02_reference_library.py |
The reference positions and line checks (Lucena, Philidor, opposition, Tarrasch, draws) | Tablebase cache; engine cache for the Tarrasch depths |
code/03_endgame_census.py |
Endgame reach and families by band | game_features, replay tables |
code/04_theory_vs_practice.py |
First K+P vs K position of every relevant game; R+P vs R samples | Writes kpk_games.csv, rpr_sample.csv |
code/05_master_search.py |
Master collections through K+P vs K and R+P vs R | Master games, tablebase cache |
code/06_lena_endgame.py |
The hook | Persona data, tablebase |
code/07_exercise_positions.py |
Every exercise solution | Tablebase cache |
code/08_modern_rook_endings.py [game_id] |
The 34 top-level R+P vs R games; one game graded | Broadcast games, tablebase cache |
code/09_classic_examples.py |
Capablanca–Menchik, Lasker–Steinitz | Master games |
case_study_01.py, case_study_02.py, project_checkpoint.py |
Case studies and module demo | As above |
Tablebase cache. Every probe goes through the toolkit's chessdata.tablebase, which now stores results in data/cache/tablebase.sqlite; the chapter also keeps its own copy of every probe in code/tb_cache.json (about 3 MB). With the cache in place the scripts run offline. Without it, they hit the shared, rate-limited Lichess tablebase server and pause between requests — do not run them live in class for the first time. K+P vs K questions need no network at all: use tablebase.kpk_result. Outputs are saved as code/NN_output.txt, cs01_output.txt, cs02_output.txt and checkpoint_output.txt.
In-class demos
Board demo
Set up the opposition pair: 8/8/4k3/8/4K3/4P3/8/8 w - - 0 1 and the same with Black to move. Ask the class to vote on each result before showing anything. Then play the Black-to-move line from §14.2 (1...Kd6 2.Kf5 Ke7 3.Ke5 Kd7 4.Kf6 Ke8 5.e4 …), stopping at 2.Kf5 to name outflanking and at move 5 to note that the pawn moves only after the king reached the sixth rank. Finish on the Lucena with the class predicting each move; when someone proposes stepping out with the king first, play it — the chapter's line shows 6.Kc4 turning the win into a draw.
Data demo
Project the band figure from §14.8 (K+P vs K theory vs practice) and read the two lines: defenders' errors fall from 15.6% to 3.8%; attackers' failures fall from 34.0% to 21.8% (1200–1399), then hover around 13–20%. Ask for explanations of the flat attacker line. Then show Case Study 2's distance-to-promotion table: 1–5 plies converted 83–84%, 21+ plies 52.4%. Close with the 84-of-200 sample: about two spoiled wins in five are knowledge errors, the rest mostly the clock.
Exercise guidance
- Part A: everyone; A2 (DTZ and cursed wins) and A4 (who has the opposition) are where wrong answers cluster.
- Part B: Improver and Competitor. Common wrong answers:
- B1 (Kd5/d4 vs Kd7): students say "White wins either way — the king is in front". With White to move, it is a draw.
- B2 (Ka8/h2 vs Kb4): 1.h3? draws; only 1.h4! wins. With Black to move it is a draw.
- B3 (Lucena with a d-pawn): students build the bridge first. 1.Rf1+! must come before 2.Rf4.
- B4 (Philidor with a d-pawn): 1...Rh8 (passive), 1...Rd6?? and the check 1...Rc6+? all lose.
- B5: students assume a bishop up always wins; every Black king move draws (wrong rook pawn).
- B6: 1.Qxf2+ looks like it wins a pawn — it leaves king against king; every one of White's 25 moves draws.
- B7 (World Cup): king moves; only 70.Ra6, 70.Rc6, 70.Rd6 draw.
- B8 (blitz, average 1136): 65.a5? (as played); only 65.Kc5 or 65.Kb5 win.
- Part C: Analyst (C1, C2, C5, C6) and Developer (C3, C4). C3 (Tarrasch pair across depths) is a quick, compelling engine-vs-tablebase demonstration.
- Part D: D1 for Improvers (honest about what the data cannot show); D2 and D5 for Analysts and Competitors.
- Part M: M5 (the Lucena as a calculation tree, including 2...Ke6) is excellent homework for Competitors.
Assessment ideas
- Count the position. Show five diagrams from the chapter (opposition, Lucena, Philidor with 1...Rb8 played, wrong rook pawn, Q vs c-pawn). Students write win/draw/loss and one sentence of reason. Grade the reason more than the label.
- Play-off. Students must win the Lucena and hold the Philidor against a classmate (or an engine) with five minutes on the clock.
- Data interpretation. "OTB players get K+P vs K wrong only 2% of the time." Students list two reasons this overstates their skill (resignation and agreement; broadcast selection).
- Quiz. 21 questions with a scoring guide; about 20 minutes.
- Developer milestone.
verify_library()returns 21/21 andcheck_lineflags 6.Kc4 in the no-bridge Lucena line.