Instructor Guide Overview
Chess Strategy, Analysis, and Analytics is a free, open textbook (DataField.Dev, CC-BY-SA-4.0) in 40 chapters and seven parts. It teaches chess the way a strong coach does — structure first, plans as directions, calculation grounded in forcing moves, endgames you can verify — and then turns the same material into data: four million online games, three hundred thousand over-the-board games, the historical record of forty great players, six million puzzles, and Stockfish 19. This overview explains how the book is built so you can decide what to teach, in what order, and what your students will need on their computers.
| Part | Chapters | Content |
|---|---|---|
| I — Strategic Foundations | 1–8 | thinking framework, pawn structure, piece activity, king safety, space, material, prophylaxis, planning |
| II — Tactics and Calculation | 9–13 | motifs, calculation trees, combinations, attack and defence, practical decisions and the clock |
| III — Endgames | 14–18 | essential positions, pawn, rook, minor-piece and queen endings, all tablebase-verified |
| IV — Openings and Preparation | 19–24 | principles, repertoire building, White and Black systems, engine prep, opponent prep |
| V — Competitive Chess and Improvement | 25–29 | study methods, game analysis, tournaments, psychology, history |
| VI — The Data Science of Chess | 30–35 | Elo and Glicko-2, database analytics, engine analysis at scale, style, chess AI, improvement analytics |
| VII — Special Topics and Capstone | 36–40 | online chess, variants, teaching chess, culture and community, the capstone toolkit |
1. Who the book is for
The book is written for players from roughly 800 to 2200 — beginners who know the moves through strong club players — and for people who want to learn data analysis with a subject they care about. It is level-aware on purpose: chapters repeatedly split their findings by rating band and say what a concept means "at 1200" and "at 2000". The same chapter can therefore serve a club class and a data-science class, if you choose the sections deliberately.
Three kinds of course fit the book well:
- A club-improvement course (Parts I–V, light on code). Students read the prose and diagrams, do the position exercises and annotate their own games. No programming is required: every chapter's chess argument is complete without the code blocks.
- A data-science or analytics course (Parts VI–VII, with selected chapters from I–V as the "domain" material). Students write Python against the book's data, build the Outpost toolkit, and learn sampling, confidence intervals, confounding and calibration on questions with real stakes.
- A coaching course or workshop series for club coaches, using Chapters 1, 8, 14, 20, 25, 26 and 38 as the spine.
Syllabi gives four week-by-week plans.
The four learning tracks
Every chapter opens with routing callouts for two or three of four tracks. They are reading paths, not separate books; use them to assign different sections to different students in a mixed class.
| Track | Who | What they read | What they produce |
|---|---|---|---|
| ♟️ Improver | players who want to get better at the board | principles, annotated games, diagrams, Try-it positions | solved positions, annotated games, a training plan |
| 📊 Analyst | students who want the data argument | the data sections, definitions, tables and figures, limits | short data reports with n, intervals and named pools |
| 🏆 Competitor | tournament players (the book's example is Grace) | openings, preparation, clock, tournament chapters | a repertoire file, a scouting report, a tournament plan |
| 💻 Developer | programmers | code excerpts, the toolkit, Project Checkpoints | the Outpost package, one module per chapter |
In a mixed class, a workable pattern is: everyone does the Improver material in the first half of each session; Analysts and Developers split off for a lab in the second half; Competitors take the preparation chapters as a mini-project.
What every chapter contains
Each chapter folder holds seven files: index.md (the chapter itself, usually 12,000–16,000 words),
exercises.md (Parts A–E plus an interleaved Part M), quiz.md (about 20 questions with answers in
fold-out blocks and a scoring guide), two case studies (typically one annotated real game and one data
study), key-takeaways.md (a one-page card with a Common Mistakes table and a decision checklist) and
further-reading.md. The code/ folder holds runnable scripts; images/ holds the diagrams and charts.
The chapter text uses a fixed set of callouts that you can lean on in class:
| Callout | Use in teaching |
|---|---|
| 🧩 Productive struggle | a problem posed before the method — set it cold at the start of a session |
| 🔍 Why this works | the geometric or dynamic reason behind a rule — good for a two-minute board talk |
| 📋 Try it | worked tasks (Analyze this position, Build the plan, Find the tactic, Endgame technique, Database research, Engine analysis) |
| 🤖 Engine check | what Stockfish 19 says, at what depth, and the human explanation |
| ⚠️ Common pitfall | the mistakes collected in Common Struggles |
| 📐 Definition | every formal metric (win %, accuracy, ACPL, phase, rating band) |
| 🔄 Check your understanding | about every 1,500 words; usable as exit tickets |
| 🪞 Learning check-in | reflection in Chapters 4, 8, 12, 16, 20, 24, 28, 32, 36, 40 |
| 🎭 Composite data | marks the cast's "own" games (see §3) |
| 🚪 Threshold concept | the ideas listed in §5 |
Every chapter from 3 on also has a Spaced Review section that asks questions about two or three earlier chapters before restating them. Use it as the warm-up for the next class.
2. The real-data promise — and how to teach with it
The book's defining commitment is that every statistic is computed from real data the reader can download, every engine evaluation came from an actual Stockfish 19 run, and every game quoted is the real game. No famous game is typed from memory; master games are loaded from the database and replayed. Constructed endgame positions are checked against the Syzygy tablebases. This is the book's advantage over traditional texts, and it is the thing you most need to protect in your classroom.
The data snapshot
| Source | Size | What it is — and is not |
|---|---|---|
| Lichess sample | 4,000,000 rated standard games | the first four million games of October 2026, about 34 hours (1 Oct 00:00 → 2 Oct 10:14 UTC). Online, mostly fast, Glicko-2 ratings. Not a year; not a panel of players |
| Lichess move text | 864,816 games | every game Lichess had analysed plus one in eight of the rest — population estimates need the sample_weight column |
| Lichess broadcasts | 373,918 relayed games | over-the-board tournaments Nov 2025 → Oct 2026, FIDE ratings; skews towards events strong enough to be relayed; contains engine, online and Chess960 events that must be filtered out |
| PGN Mentor | 97,833 games | collections of 40 great players, 1749–2026; the historical record, not a random sample |
| FIDE list | 1,959,064 players | one cross-section (file dated 2026-11-20) |
| Lichess puzzles | 6,193,530 puzzles | ratings are puzzle ratings, not player ratings |
| Chess.com archives | 71,786 + 34,410 games | two public accounts only (Hikaru Nakamura, Levy Rozman); Magnus Carlsen's archive was not available |
Appendix B documents every table, column and quirk. Read its "pitfall" callouts before you set your first data assignment.
Four classroom norms
The book follows four rules in every chapter. Adopt them as rules for student work too; the rubrics in Rubrics score them explicitly.
- Every engine number has a depth and a point of view. The book writes "+0.83 (Stockfish 19, depth 20)", always from White's point of view, in pawns to two decimals, with mates as #5 / #-5. Students must do the same. When a conclusion depends on depth, show two depths. The book's showcase: in Kasparov–Topalov, Wijk aan Zee 1999, Stockfish 19 picks 24.Rxd4 as the best move at every depth from 12 to 32 but never rates it winning (−0.46 at depth 12, −0.17 at depth 32). "Best move" and "winning move" are different claims.
- Rating pools are never converted. Lichess (Glicko-2), Chess.com (its own Glicko-based pools per time control) and FIDE (Elo, over the board) are different scales. Always name the pool — "Lichess blitz 1600", "FIDE 1850" — and never present a conversion as fact. Students will push back on this; Common Struggles §9 has the classroom answer.
- Every rate comes with n, and every comparison with an interval. The book's anchor examples (§3) are built to show what happens when you skip this.
- Personas are composites; real amateurs stay anonymous. Lichess usernames in the data are salted hashes. Never print, guess or look up an amateur's username, and do not let students do it either. Public figures may be named when the data is their public account or their official tournament games.
Teaching with real data
- Let the numbers surprise. Several chapters were written to test a piece of chess folklore and report what the data says. For example: the Sicilian does not score over 50% for Black at master level (47.2% in the masters explorer, Chapter 22); the "~25% of games reach an endgame" figure depends entirely on the definition (with the book's material rule, 63.0% of OTB classical broadcast games and 51.5% of Lichess blitz games reach the endgame, Chapter 14); the "200-point gap means 76%" rule over-predicts the favourite in every pool (72.2% in OTB classical, 66–69% online, Chapter 30). These are excellent opening questions: ask the class to predict, then show the table.
- Make the filters visible. Most wrong answers in student data work come from an invisible filter: bots not excluded, engine events left in the OTB table, unweighted Lichess estimates. Ask for the filter chain and the count after each step in every report.
- Use the engine as a teacher, not an oracle. Every 🤖 callout in the book follows the number with a human explanation. Require the same: an engine line without a sentence of "why" earns no credit.
3. The running cast and the four anchors
The cast
Four fictional members of the Thursday Night Chess Club at the public library in Hartwell appear in chapter hooks, short dialogues and most Project Checkpoints. None of them is a real player, and their "own games" are composites: real games from the open databases at that player's rating, selected by a fixed rule and relabelled. The first use in each chapter carries a 🎭 label. Make sure students understand that a persona's numbers are a demonstration of method, not facts about a person.
| Character | Who | Track | Composite game set |
|---|---|---|---|
| Lena Ortiz | 34, ER nurse, came back to chess in 2020; loves tactics, loses "boring" positions | ♟️ Improver | 300 Lichess rapid games, her side rated 1300–1500 |
| Dev Raman | 19, computer-science sophomore, plays too much bullet; builds Outpost | 💻 Developer | 600 Lichess blitz games, his side rated 1550–1750 |
| Grace Mbeki | 16, preparing for her state championship and a FIDE open | 🏆 Competitor | 250 over-the-board classical games, her side FIDE 1750–1950 |
| Sam Whitaker | 61, retired history teacher, club organiser, sceptical of engines | the classical memory | — |
Sam is useful in class as the voice of the sceptical student: he is often right, and his challenges ("the old books said…") are a natural way to stage an engine-versus-tradition debate.
The four anchors
The anchors are case studies that return across chapters. Each one teaches a habit of mind, and three of them were rewritten when the data contradicted the original story — which is itself the lesson.
| Anchor | Introduced → reused | The case | The lesson |
|---|---|---|---|
| A — The Carlsbad structure tells you the plan | Ch 2 → 8, 21, 22, 31 | Smyslov–Keres, World Championship 1948, round 17: White's minority attack 12.b4, 13.b5, 14.bxc6; after 13.b5 Stockfish 19 gives +0.12 (depth 18) / +0.11 (depth 24) | structure replaces memorisation; the minority attack is a long-term plan, not a knockout |
| B — The hidden sacrifice the engine found | Ch 11 → 26, 32 | an anonymous Lichess rapid game (both players 1613, London System): White played 10.O-O (+1.78 d18) where 10.Nxf7! Kxf7 11.Qh5+ was winning (+6.18 d18 / +6.09 d24) | learn the preconditions — king uncastled, development lead, a loose bishop on c5 — not the move |
| C — The database query that seemed to reveal Dev's weakness | Ch 20 → 23, 31, 35, 40 | Dev's Italian scores 67.5% [56.6–76.8], n=80 vs 51.6% for his band — a real strength; his Najdorf 6.Be3 scores 36.0% [24.1–49.9], n=50 vs 44.3% for his band — a gap the interval cannot separate from noise | confidence intervals before conclusions; study the Najdorf because it is hard at 1600 and he reaches it often, not because one number looked bad |
| D — The opponent preparation that killed Grace's assumption | Ch 24 → 27, 40 | the opponent everyone called "passive" plays the French in about 96% of games vs 1.e4, scores 76.0% [67.9–82.5] with it, and always answers the Advance with 3...c5 | a hypothesis is not a scouting report; measure it. Grace prepares a sound, lower-theory line (3.Nd2) and expects active play |
Two cautions when teaching the anchors. In Anchor C, never claim Dev's rating rose after his study — the data has no such record. In Anchor D, the illustrative "round 3" game's 24.Nxh7 attack worked in practice although Stockfish 19 rates it unsound (−0.28 at depth 24): it teaches practical chances, not that the plan was right.
4. Outpost — the progressive project
Outpost is a personal chess analysis and improvement toolkit that the reader builds as a Python
package at project/outpost/, one module per chapter, each with a runnable demo
(code/project_checkpoint.py) in the chapter folder. Modules depend on the book's toolkit and the
standard scientific stack. The capstone chapter assembles the modules behind a command-line entry point
(python -m outpost …), an HTML report and a set of smoke tests.
| Part | Modules (chapter) |
|---|---|
| I | games (1) · structure (2) · activity (3) · king_safety (4) · space (5) · material (6) · prophylaxis (7) · planner (8) |
| II | tactics (9) · calc (10) · sacrifices (11) · dynamics (12) · clock (13) |
| III | tablebase (14) · pawn_endings (15) · rook_endings (16) · minor_endings (17) · endgame_stats (18) |
| IV | opening_principles (19) · repertoire (20) · opening_report (21) · opening_compare (22) · prep (23) · scout (24) |
| V | training (25) · review (26) · tournament (27) · tilt (28) · history (29) |
| VI | ratings (30) · database (31) · accuracy (32) · style (33) · engine_lab (34) · progress (35) |
| VII | online (36) · variants (37) · coach (38) · community (39) · cli + report + tests (40) |
Forty modules is more than any one course should assign. The milestone plan in Assessments groups them into five checkpoints and a capstone, and marks which modules are core and which are optional for each syllabus. Two practical points:
- Students can start from the book's modules. The reference implementations are in the book's
project/outpost/folder. For a data-science course, a good pattern is "re-implement one function from scratch, extend the module with one new feature, and write a test" rather than "write all forty modules". - The capstone runs the pipeline on a real game set — a composite persona or, better, the student's
own public games (Lichess or Chess.com) fetched through
games.fetch_user_games, which falls back to the book's data when the network is unavailable. The question to ask of every capstone: does the data find the weakness the player expected?
5. Threshold concepts
Five ideas are flagged in the text as threshold concepts — once a student has them, the rest of the subject looks different, and until then much of it looks arbitrary. Plan to spend extra time on each, and expect students to need several encounters.
| Concept | Where | How you know a student has it |
|---|---|---|
| The structure dictates the plan | Ch 2 (reused in 4, 8, 21–23) | asked for a plan, they name the pawn skeleton and a lever before they name a piece move |
| Tactics are consequences, not accidents | Ch 9 | they look for the positional asset (outpost, weak king, loose piece) that created the combination |
| An endgame is won, drawn or lost — not "a pawn up" | Ch 14 | they ask "what does the tablebase say?" instead of counting material in ≤7-piece positions |
| Style is a continuum, not a set of types | Ch 33 | they stop labelling players "aggressive" or "positional" and ask for the feature and its reliability |
| Bullet is chess with noisier feedback | Ch 36 | they treat online results at fast time controls as weak evidence about their play |
Two further ideas run through the whole book without a single home, and the common struggles show they are threshold-like for most students: an engine number is a measurement with a depth, not a verdict, and a rate without an interval is an anecdote with decimals.
6. Software set-up
Students who only read the prose need nothing installed. For any course with labs, the set-up is:
| Component | Version used in the book | Notes |
|---|---|---|
| Python | 3.13 (3.11+ should work) | on Windows, tick "Add python.exe to PATH" during installation |
| python-chess | 1.11.2 | pip install python-chess, imported as chess |
| pandas · pyarrow | 2.3 · 24.0 | pyarrow reads the .parquet tables |
| numpy, matplotlib, seaborn, scipy, scikit-learn, requests, zstandard | recent releases | all listed in requirements.txt |
| Stockfish | 19 | a separate program from stockfishchess.org; place the binary at engine/stockfish.exe or point the STOCKFISH_PATH environment variable at it |
The whole Python side is one command inside a virtual environment:
python -m venv .venv
.venv\Scripts\activate (Windows) | source .venv/bin/activate (macOS / Linux)
pip install -r requirements.txt
requirements.txt in the book's root folder lists the minimum versions (python-chess ≥ 1.11, pandas ≥
2.2, numpy ≥ 1.26, matplotlib ≥ 3.8, seaborn ≥ 0.13, scipy ≥ 1.12, scikit-learn ≥ 1.4, pyarrow ≥ 15,
zstandard ≥ 0.22, requests ≥ 2.31). Add pytest if students will run the toolkit's tests
(python -m pytest -q toolkit/tests).
The toolkit. Every script imports four shared modules from toolkit/: chessdata (loaders and the
book's single definitions of win %, accuracy, ACPL, phases, rating bands and speeds), engine (Stockfish
19 with a cache), boards (diagrams and evaluation graphs) and structures (pawn-structure labels and
features). Tell students to import these definitions rather than re-implement them; it is the fastest
way to keep their numbers comparable with the book's. Every chapter script starts with the same header
(it adds the toolkit and project folders to the import path and makes the terminal accept chess symbols
on Windows) — Appendix A explains it line by line.
The data. The processed tables live in data/processed/ (about 1.5 GB in total: the largest are
lichess_moves at roughly 470 MB, puzzles at about 360 MB and broadcast_moves at about 320 MB). They
are built from public downloads — the Lichess open database, the Lichess broadcast database and puzzle
file, PGN Mentor player files, the FIDE combined rating list and the Chess.com public API — by the scripts
in scripts/ (build_lichess_sample.py, build_broadcast.py, build_masters.py, build_fide.py,
build_puzzles.py, build_features.py, fetch_chesscom.py). For a class, distribute the processed
snapshot rather than asking students to rebuild it: rebuilding is slow (the feature build alone takes
about 13 minutes on a 30-core machine) and the Lichess sample depends on streaming a specific month. Ship
data/processed/, data/reference/ and data/cache/ together.
7. Classroom logistics
Ship the caches. data/cache/engine.sqlite stores every Stockfish 19 evaluation the book made
(170,524 rows when Appendix B was written), keyed by position, depth, number of lines and engine
version. With the cache in place, re-running a chapter's script reproduces its engine numbers instantly
and identically. Without it, numbers are recomputed and a cold run can differ by a few centipawns.
data/cache/tablebase.sqlite and data/cache/explorer/ do the same for tablebase probes and the masters
opening explorer, so the book's code runs offline.
Runtimes to plan around (from the toolkit's own timing on the book's machine; student laptops will be slower):
| Task | Typical time |
|---|---|
| Evaluate one position at depth 18 | about half a second |
| Analyse a 70-ply game at depth 16, one thread | about 9 seconds (≈130 ms per ply) |
| Analyse 40 games with 20 parallel workers | about 70 seconds |
| Re-analyse anything already in the cache | effectively instant |
| Load all 4,000,000 Lichess games with every column | about half a minute, much longer on a busy machine |
Read the same table with only the needed columns= |
a few seconds |
Rules of thumb for labs: keep in-class engine work to tens of games at depth 16, not thousands; use the evaluations already stored in the data (Lichess server analysis, broadcast relay evaluations) for population questions; and read only the columns a task needs. Set long engine jobs as homework.
Windows and macOS. Any script that analyses games in parallel must put its main code under
if __name__ == "__main__": on Windows. Scripts should build paths from their own location (the book's
BOOK variable), not from the terminal's current folder. On macOS and Linux the Stockfish binary has a
different file name than stockfish.exe, so STOCKFISH_PATH is the simplest fix. Common Struggles
§14 collects the set-up problems
students actually hit.
Network access. Only three toolkit functions touch the network — the opening explorer, the tablebase probe and the Chess.com archive — and all three are cached. The Lichess games explorer now needs a login token, so the book uses its own Lichess table instead. If a class fetches students' own games from the Lichess API at the same time, expect rate limiting (HTTP 429); stagger the requests or fetch the night before.
Hardware. A recent laptop with 8 GB of memory can run every chapter that reads a subset of columns; 16 GB is more comfortable for the Part VI chapters. Engine work scales with cores. If your institution has a lab server, run long engine jobs there and share the resulting cache file with the class.
Privacy and ethics. Opponent preparation (Chapter 24) and the online-chess chapter (36) touch on fair play. The book's line is firm: preparation from public games is fair; collecting personal information is not; and no one is accused of cheating on the basis of a statistic. Hold students to the same line in discussion and projects.
8. Using this guide
- Syllabi — four week-by-week course plans.
- Assessments — the midterm, the final and the Outpost milestones with weights.
- Rubrics — for annotations, data reports, Outpost checkpoints, the capstone and discussion.
- Common Struggles — the misconceptions and set-up problems, each with a fix.
- Chapter notes and discussion guides — one of each per chapter, listed in the guide's index.