Case Study 2 — Theory vs Practice: What the Tablebase Says About Real Rook Endings
Setup
A tablebase knows the truth about every position with seven or fewer pieces. A database knows what people actually did. Put them side by side and you can measure something no endgame book can: how many half-points players give away in rook endings, and which side gives them away.
We use the two smallest rook endings that real games reach often:
- R+P vs R — one rook each, one pawn against none (5 pieces);
- R+2P vs R+P — one rook each, two pawns against one (7 pieces, the largest Syzygy tables).
For each game in the book's data that reached one of them, the first stable such position (the next move is
not a capture) was located by the book's endgame replay. We drew random samples (random_state=16):
- R+P vs R: 140 OTB classical games (broadcast, human OTB events; FIDE ratings) and 140 Lichess blitz/rapid games,
drawn in proportion to
sample_weightso they represent all Lichess games; - R+2P vs R+P: 100 OTB classical and 100 Lichess blitz/rapid games, the same way.
Each position was rebuilt from the game's moves and probed with outpost.rook_endings.theoretical_for. Cursed
wins (wins that the 50-move rule turns into draws) count as draws. Scripts: code/07_theory_vs_practice_rp.py,
code/08_theory_vs_practice_r2p.py, code/case_study_02.py.
📐 Definition: points given away. For each game, compare the theoretical score of a side (1 for a tablebase win, ½ for a draw, 0 for a loss) at the first stable position with the score it actually made. If the practical score is lower, the difference is what that side gave away against perfect play; averaged over games, it is "points given away per game". A side can only give away points it theoretically had, so the measure is computed separately for the side with the extra pawn and for the defender.
Two methodological choices matter. Why the first stable position? Because it is the moment the ending
genuinely begins and both players have a full ending ahead of them; later positions are partly the result of
earlier errors. Why weight the Lichess sample? The book's per-game feature table keeps every Lichess game
that carries server evaluations but only one in eight of the rest; analysed games are self-selected (someone
requested analysis) and are not typical. Drawing rows in proportion to sample_weight restores the mix of the
4-million-game sample. Without it, the sample would over-represent analysed games.
The data
R+P vs R
R+P vs R: theoretical verdict for the side with the extra pawn vs the practical result
set theory games share win draw loss points_given_away
Lichess blitz+rapid draw 79 56.4 36.7 44.3 19.0 0.095
Lichess blitz+rapid loss 4 2.9 0.0 0.0 100.0 0.000
Lichess blitz+rapid win 57 40.7 68.4 21.1 10.5 0.211
OTB classical draw 87 62.1 18.4 81.6 0.0 0.000
OTB classical win 53 37.9 94.3 5.7 0.0 0.028
Lichess blitz+rapid theoretically won: 57; converted (side ahead won): 68.4% [55.5-79.0]
Lichess blitz+rapid theoretically drawn: 79; held by the defender (draw or better for him): 63.3% [52.3-73.1]
OTB classical theoretically won: 53; converted (side ahead won): 94.3% [84.6-98.1]
OTB classical theoretically drawn: 87; held by the defender (draw or better for him): 81.6% [72.2-88.4]
(The four Lichess positions marked "loss" are ones where the side with the pawn was theoretically lost — for example because its rook was about to be won; they are a reminder that "a pawn up" is a count, not a verdict.)

📊 Figure (described): Practical outcome by tablebase verdict, R+P vs R. OTB classical players convert theoretically won positions 94.3% of the time and hold theoretically drawn ones 81.6% of the time; Lichess blitz/rapid players convert 68.4% and hold 63.3%, and the side with the pawn even loses 19.0% of drawn and 10.5% of won positions.
R+2P vs R+P
R+2P vs R+P: theoretical verdict for the side with the extra pawn vs the practical result
set theory games share win draw loss points_given_away
Lichess blitz+rapid draw 59 59.0 52.5 22.0 25.4 0.127
Lichess blitz+rapid loss 1 1.0 0.0 0.0 100.0 0.000
Lichess blitz+rapid win 40 40.0 52.5 25.0 22.5 0.350
OTB classical draw 55 55.0 32.7 65.5 1.8 0.009
OTB classical loss 3 3.0 0.0 0.0 100.0 0.000
OTB classical win 42 42.0 90.5 9.5 0.0 0.048
Lichess blitz+rapid: ... points per game given away by the side ahead 0.215, by the defender 0.155
OTB classical: ... points per game given away by the side ahead 0.025, by the defender 0.090
OTB classical theoretically won: 42; converted (side ahead won): 90.5% [77.9-96.2]
OTB classical theoretically drawn: 55; held by the defender (draw or better for him): 67.3% [54.1-78.2]

📊 Figure (described): The same comparison for R+2P vs R+P. With one more pawn each, the defender's task is harder: OTB classical defenders hold only 67.3% of theoretically drawn positions, and on Lichess the side with the extra pawn wins 52.5% of theoretically drawn positions — while converting only 52.5% of the won ones.
One game, move by move
To see what "losing a drawn R+P vs R" looks like, case_study_02.py follows one OTB classical game from the
sample (broadcast game_id 29737, 2025; White rated 2348, Black 2142 — we identify the players by rating only).
The first R+P vs R position:

♟️ Position: White Kg4, Ra8, a5; Black Kg7, Re4 — White to move. FEN:
R7/6k1/8/P7/4r1K1/8/8/8 w - - 0 51
This is a Vancura-type position: White's rook in front of an a-pawn, Black's king on g7, Black's rook free. It is a theoretical draw. The tablebase walk:
51...Re1 (Black): 1/2-1/2 -> 1-0; moves that kept it: Rb4 Rc4 Rh4
moves from the R+P vs R start: 51.Kf5 Re1 52.a6 Ra1 53.Ke5 Ra5+ 54.Kd4 Rf5 55.Ra7+ Kf6 56.Rh7 Ra5 57.a7 Ra1
58.Kd5 Kg6 59.Rc7 Kf6 60.Kc6 Ke6 61.Kb7 Kd6 62.Rc6+ Kd5 63.Ra6

♟️ Position: White Kf5, Ra8, a5; Black Kg7, Re4 — Black to move. FEN:
R7/6k1/8/P4K2/4r3/8/8/8 b - - 1 51
Analysis
The losing move. After 51.Kf5, three Black moves hold: 51...Rb4, 51...Rc4 and 51...Rh4 — all three keep the rook on the fourth rank, active and in contact with the rank the white king wants to use. Black played 51...Re1, preparing to go behind the pawn (52...Ra1 after 52.a6). That is Tarrasch's rule — and, against a rook pawn supported by the rook in front, the exception the Vancura map in section 16.7 showed us: from behind (a1) Black loses, from the side (the sixth rank) Black draws. The rest of the game is White's king walking across to the a-pawn (53.Ke5, 54.Kd4, … 61.Kb7) while the black rook, stuck behind the pawn, has no useful checks. One natural-looking move, and the half-point was gone.
The pattern across the sample.
- Most of these endings are draws. 55–62% of the positions real players reached were theoretical draws in both endings and both pools. An extra pawn in a single-rook ending is usually not enough by itself.
- Slow OTB play: the defender leaks, the attacker doesn't. In OTB classical R+P vs R the attacker gave away 0.011 points per game against perfect play and the defender 0.057; in R+2P vs R+P, 0.025 and 0.090. Strong OTB players convert won positions (94.3% and 90.5%) but lose drawn ones 18.4% and 32.7% of the time.
- Fast online play: both sides leak. On Lichess blitz/rapid the side ahead gave away 0.139 (R+P vs R) and 0.215 (R+2P vs R+P) points per game, the defender 0.104 and 0.155. The theoretical verdict still matters — won R+P vs R positions were won 68.4% of the time, drawn ones 36.7% — but errors on both sides blur it.
- More pawns, more errors. The defender's hold rate falls from R+P vs R to R+2P vs R+P in both pools (OTB 81.6% → 67.3%; Lichess 63.3% → 47.5%). Every extra pawn adds a resource for the attacker and a race for both.
What decides R+2P vs R+P in theory? Script 08 also labels the pawn geometry of the side ahead:
Share theoretically won for the side ahead, by pawn geometry (both sets pooled):
spread
same wing 42.5% won (n=106)
split 39.4% won (n=94)
passed
has a passed pawn 43.8% won (n=176)
no passed pawn 20.8% won (n=24)
Practical score of the side ahead in theoretically WON positions, by geometry and set:
Lichess blitz+rapid same wing 66.7% (n=21)
split 63.2% (n=19)
OTB classical same wing 93.8% (n=24)
split 97.2% (n=18)
A simple "same wing / split" label (two pawns within two files of each other, or three or more apart) does not predict the theoretical result: the shares are close. Owning a passed pawn does — 43.8% won against 20.8% without one — although the "no passer" group is small (n=24). This is an honest limit of feature engineering on chess positions: the factors that decide these endings (king placement, which rook is active, the tempo count in a race) are relational, and a one-line label misses them. The tablebase has no such problem, which is why the chapter keeps returning to it as the referee.
What it means (and what it doesn't)
It means the most valuable rook-ending knowledge for a tournament player is defensive: Philidor, Vancura, the long side, the "only move" checks. That is where the half-points are lost in slow games. It means that in online play, technique on both sides is worth points — the theoretical verdict is only weakly reflected in the result.
It does not mean these percentages are precise: with 40–90 games per cell, the Wilson intervals are wide (OTB conversion of won R+P vs R positions: 84.6–98.1%). It does not tell us why each error happened — time pressure, ignorance of the reference position, or fatigue; the clock data could start to separate those (Chapter 13). And the first stable position is only the start of the ending: a position can change verdict several times before the game ends, as Divya Deshmukh–Ju Wenjun showed in section 16.8.
Discussion questions
- Why might OTB attackers convert won R+P vs R positions so reliably (94.3%) while OTB defenders lose almost one drawn position in five? Think about what each side needs to know.
- In the game above, Black chose a rook move that obeys Tarrasch's rule and lost. How would you teach the exception so that a student recognises it at the board?
- The Lichess sample was drawn in proportion to
sample_weight. What would go wrong if we had sampled the Lichess rows uniformly instead? - Which would reduce your own half-point losses more: studying winning technique (Lucena, conversion plans) or defensive set-ups (Philidor, Vancura)? Use the "points given away" numbers to argue.
Your turn
Extend 07_theory_vs_practice_rp.py to record, for each game, the first move that changed the theoretical
result (as case_study_02.py does for one game) and the clock time remaining at that move (the broadcast
movetext carries [%clk]). For the OTB sample, tabulate: who made the first error (attacker / defender), the
pawn's file, and whether the player had more or less than five minutes left. Write a paragraph on what kind of
knowledge — or time management — would have saved the most half-points.