Introduction
Hello and welcome to the homepage of my computer chess engine, typhoon. On this page you can learn about the algorithms and data structures it uses, find instructions for running it, see test suite and tournament results, and find links to the source code.
History
I started programming chess in college in the 1990s on my DECStation 5000; I like chess and it was a fun hobby for a CS student. My programs were buggy as hell and I had no idea what I was doing, but it was fun, and I was so happy when I built something that could beat me reliably (which isn't a high bar — then or now!).
Around the year ~2000 I started a chess program I called "monsoon". It was a clean, fresh codebase where I could apply what I had learned. In 2004, I added a multithreaded search to the same codebase and renamed it "typhoon".
Then I got busy. I had a new job in 2005 (at Google, where I must admit I did run typhoon on borg, marveling at finishing an entire 879-position ECM test pass in ~a minute by running one position per machine on 879 machines — at priority -1, of course). I had a son and raised him. Old typhoon collected dust on a virtual shelf while I lived life.
Until I retired in 2026 and had some time to dust off the engine again. I found that the world had changed! I was aware of AlphaZero and DeepMind's results in chess and Go, but NNUE evals? Stockfish?! Leela using a Monte Carlo search tree! Very cool.
I've had the time now, and I've been working on my old engine for months — and it's playing quite a bit stronger than it used to.
Recent Changes
Modernizing a 25+ year old, 0x88, hand-crafted-eval engine has been a long project. Here's roughly what's changed:
- Converted the board representation to bitboards
(keeping the legacy 0x88
rgSquare[]mailbox around where it's still useful — see the benchmarks on that page). - Replaced the hand-crafted evaluation (HCE) with a trained NNUE network. It's gone through several generations now — the current one (v6) was trained on roughly 65 million Stockfish self-play games plus 10 million Typhoon self-play games, with a wider input feature layer than earlier versions. It's meaningfully stronger than the HCE and a little faster.
- Switched from Eugene Nalimov's EGTB format to Fathom syzygy tablebases for endgame lookups — see Endgame Tablebases & Opening Book.
- Replaced several hand-tuned heuristics in move ordering and pruning (Late Move Reduction, Late Move Pruning, static nullmove pruning) with small regression models — see Late Move Reductions & Pruning. Given a move, its static-exchange estimate, the current eval relative to alpha/beta, and similar signals, the model predicts the probability that searching the move will fail high — and that probability drives how aggressively the move gets reduced or pruned. I'm on the sixth generation of these models now, with reasonable AUC and low error rates.
- Spent a lot of time this fall on what I've started calling situational safety: trying to measure, position by position, how likely a pruning/reduction mistake is to actually corrupt the principal variation versus get absorbed harmlessly a few plies later. It turns out to be a genuinely hard measurement problem — I built fail-high regression models fed by signals like the number and location of earlier reductions ("early cuts" and "PV-nets") and distance from the current line to the PV, then used a fast SAFE/MEDIUM/DANGEROUS classification distilled from that model as an extra cost term in the pruning decision (details on the Late Move Reductions & Pruning page). Several follow-on ideas (adjusting LMP curves under "danger," turning off IID) didn't pass SPRT testing and got reverted — this is slow, iterative work.
- All of the above gets validated the same way: thousands of self-play games against prior versions (and against Crafty) scored with a SPRT, not just "it looked better in one test suite run."
- Got the engine playing on lichess.org under the bot account TyphoonBot — give it a game if you'd like!
The code is public in my git repo, so if you're curious how it works, clone it and start reading. I'm not going to help you build it — it's fiddly, since it uses compiler intrinsics for bitwise operations and SIMD code to evaluate the NNUE net. At some point I'll call it "ready" and release a supported version with instructions, but until then I don't want questions about how to build it. I do want to hear about any bugs you find, though — feel free to drop me a line.
Running it
In addition to cloning the source code (and figuring out how to build it, try justmake release MP=1 PERF_COUNTERS=1 using gnu
make), you will also need the
opening book and NNUE net weights (~150Mb).
If you're a chess pro, typhoon will also use the syzygy EGTB files if you
have a local copy on your disk. It will look in /etgb or wherever you
pass via the --egtbpath argument. Speaking of arguments, --help
works but the other ones you might be interested in are --cpus (if
you build with MP=1) and --hash.
How it Works
The rest of the engine's design is split across the pages below — start anywhere, or read them in order.
PIECE and POSITION structures, and
head-to-head speed benchmarks.
Move Generation
How legal moves get generated from both
representations, and the 32-bit packed MOVE type.
Search
Principal variation search, nullmove
pruning, search extensions, and the multithreaded tree-splitting
search.
Late Move Reductions & Pruning
The regression-model-driven cost/risk
formula behind modern LMR and LMP, and the "situational safety"
work layered on top.
Move Ordering
Hash moves, SEE-scored captures, killers,
and the history heuristic.
Position Evaluation
The NNUE network, lazy/super-lazy
evaluation gates, pawn hashing, and a tour of the retired HCE's
terms.
Transposition Tables
Hash signatures, the replacement scheme,
and how the multithreaded search locks the table.
Endgame Tablebases & Opening Book
The 3-million-position opening book and
the move to Fathom syzygy tablebases.
Test Suites & Tournaments
ECM/WAC/WCSAC suite scores and Monsoon's
results in the CCT Internet Chess Club tournaments.
Source Code & Thanks
Where to get the code, good starting
points for reading it, and acknowledgments.