Skip to content

Releases

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 13:02
83fa6c6

The first release of cb2026 (ChessBrain 2026): a UCI and XBoard chess engine in Rust, written from scratch as a learning tool, with a companion book, Building a Chess Engine in Rust, on how each part works.

Highlights

  • Strength: about 3286 ± 17 on the CCRL Blitz scale, from 5,600 games at 8+0.08 against seven rated engines; 3236 ± 16 with the first network, and 2782 ± 11 with the hand-crafted evaluation. The weaker reference engines say little at this level, so the figure rests mostly on the two strongest, Weiss 1.0 and Stash v27.0.
  • A built-in NNUE network. It is 768 → 256 × 2 → 1, trained by cb2026's own trainer (on the CPU, or the GPU through Metal) in two generations: the first network learnt from 104 million positions of the hand-crafted evaluation's games, and this one from 103 million of the first network's games, which made it about 144 Elo stronger in self-play. EvalFile loads another network, and none selects the hand-crafted evaluation. The hand-crafted evaluation still plays at the strength levels, which were calibrated with it, and in endings with a lone king or with at most five men and no pawns, which it plays better.
  • Search: principal variation search with a transposition table and aspiration windows. Null-move pruning, late move reductions and late move pruning, reverse futility pruning, razoring, futility and SEE pruning. Singular, double and negative extensions, multi-cut and internal iterative reductions. Move ordering by killers, countermoves, history and continuation history, and correction history. Adaptive time management, and Lazy SMP up to 256 threads.
  • Features: UCI and XBoard, Chess960, MultiPV, pondering, Syzygy tablebases (SyzygyPath) and Polyglot opening books (OwnBook, BookFile). Strength levels 0–20, and UCI_LimitStrength with UCI_Elo 600–2500 on a human scale (Lichess rapid, estimated from how often people blunder). An interactive shell for playing, watching the engine think and switching its techniques on and off, and the Chess Node Protocol (CNP).
  • Tested:
    • 22,400 games against itself, from 1+0.01 to 40/60, single-threaded and at four threads each (10,000 of them with this network), with no time losses, illegal moves or crashes;
    • En Croissant, Cute Chess, XBoard and HIARCS Chess Explorer;
    • move generation exact on every perft suite;
    • the tests pass on macOS, Windows and Linux.

Downloads

File What it is
cb2026-v1.0.0-aarch64-apple-darwin.tar.gz Macs with Apple silicon (M1 and later)
cb2026-v1.0.0-x86_64-apple-darwin.tar.gz Intel Macs
cb2026-v1.0.0-x86_64-pc-windows-msvc.zip Windows, x86-64
cb2026-v1.0.0-x86_64-unknown-linux-gnu.tar.gz Linux, x86-64
cb2026-gen2-256.nnue The built-in network as a file, for anyone who wants it. Every binary already has it.
cb2026-lichess-2026-09.bin An opening book in the Polyglot format, from Lichess's September 2026 games between players rated 2200 or more, at blitz or slower (CC0): 97,432 moves for the first 20 plies. Set BookFile to it and turn on OwnBook.
THIRD-PARTY-NOTICES.txt The notices of the open-source libraries cb2026 is built with
SHA256SUMS.txt Checksums of every file: shasum -a 256 -c SHA256SUMS.txt --ignore-missing

Each package holds the cb2026 program, the README (which explains the options), the licences and the third-party notices. Add the program to your GUI as a UCI engine.

  • The Mac programs are signed with a Developer ID and notarised by Apple. The first run asks Apple online, and after that they open with no warning.
  • The Windows program isn't signed, so Windows may warn the first time it's opened ("More info", then "Run anyway").
  • The binaries are built for each platform's baseline CPU, so they run everywhere. A build from source with RUSTFLAGS="-C target-cpu=native" is a little faster.

Known limitations

  • The strength levels' ratings are estimated from how often people of each rating blunder, not measured in games against people.
  • Without tablebases, a few long endings are hard for it at fast time controls. In tests at 200,000 nodes a move, it converted K+B+N against K 11 times in 15, and K+Q against K+R 32 times in 45. With Syzygy tables it wins them every time.
  • The Linux binary is built on a current Ubuntu, so it needs a similarly recent glibc. On older systems, build from source.

Licence

cb2026 is MIT OR Apache-2.0. The release binaries include Syzygy probing through shakmaty-syzygy, which is GPL-3.0-or-later, so each binary is GPL-3.0-or-later as a whole. The packages include all three licences. A build without the syzygy feature is MIT OR Apache-2.0 throughout.

What's Changed

  • Add cb2026 PRD, README and CLAUDE.md by @cjus in #1
  • Claude/prd by @cjus in #3
  • PRD: decisions after review (name cb2026, tablebases, test Mac, GUIs, research log) by @cjus in #2
  • M0: workspace skeleton, CI, licence checks, book and cloud setup by @cjus in #4
  • CLAUDE.md: file items for Carlos as needs-carlos issues by @cjus in #13
  • PRD, CLAUDE.md: record answers from needs-carlos issues; main is protected by @cjus in #14
  • CLAUDE.md: Claude may merge its own PRs once CI is green by @cjus in #15
  • Stage 1: board representation, FEN and the shell's board display by @cjus in #16
  • Stage 2: legal move generation, make move and perft by @cjus in #18
  • Stage 3: magic bitboards for sliding attacks by @cjus in #19
  • Stage 4 (part 1): Zobrist hashing by @cjus in #21
  • Stage 4 (part 2): standard algebraic notation by @cjus in #22
  • Stage 4 (part 3): Engine API, UCI and a random mover by @cjus in #23
  • Match tool with SPRT, opening suite and mac-sprt.sh by @cjus in #25
  • Stage 5: material evaluation and negamax alpha-beta search by @cjus in #26
  • match: keep the SPRT verdict from the game that crossed the bound by @cjus in #27
  • Stage 6: iterative deepening and time management by @cjus in #28
  • Stage 7: quiescence search and MVV-LVA move ordering by @cjus in #29
  • Stage 8: transposition table by @cjus in #30
  • Stage 9: piece-square tables and tapered evaluation by @cjus in #31
  • Stage 10: killers, countermoves, history and staged move picking by @cjus in #32
  • Gauntlet tool and mac-gauntlet.sh: ratings against reference engines by @cjus in #35
  • Fuzz tests for the FEN, move and UCI parsers by @cjus in #38
  • match: repeating time controls and a count of games that ended badly by @cjus in #39
  • Release workflow: draft GitHub releases with binaries from version tags by @cjus in #40
  • Stage 11: principal variation search and aspiration windows by @cjus in #33
  • Stage 12: null-move pruning by @cjus in #41
  • Stage 13: late move reductions and late move pruning by @cjus in #42
  • Stage 14: SEE, futility, razoring and SEE pruning by @cjus in #43
  • Stage 15: full hand-crafted evaluation by @cjus in #44
  • Stage 16: Texel tuning on self-play data by @cjus in #45
  • docs/status.md: where cb2026 stands and how to carry on by @cjus in #48
  • Stage 17: Lazy SMP with a lock-free transposition table by @cjus in #46
  • Stage 18, part 1: Syzygy tablebases and Chess960 start positions by @cjus in #49
  • Stage 18, part 2: Polyglot opening books by @cjus in #50
  • Stage 19: strength levels and MultiPV by @cjus in #51
  • Stage 20: XBoard/CECP, pondering, conformance tests, Lichess setup by @cjus in #52
  • Shell: stats, tree, explain, eval diff, see, techniques, ab by @cjus in #53
  • Shell: redo, clocks, hint, resign, draw, PGN save and load by @cjus in #54
  • Shell: match, selfplay, uci and xboard by @cjus in #55
  • Record stage 17's thread scaling and the M0 perft gate by @cjus in #56
  • Fuzz workflow: build for the runner's target, not musl by @cjus in #59
  • Check extensions (off by default: no measured gain) by @cjus in #57
  • Internal iterative reductions by @cjus in #58
  • Improving heuristic, off by default (SPRT −32 Elo); long tests move to the M3 Mac by @cjus in #60
  • Record the M3 Max as the test machine (#62) by @cjus in #64
  • Improving, gentler (half a ply off the margin), off by default after its SPRT; root evaluation fix by @cjus in https://github.com/cjus/chessengine/pu...
Read more