Avalanche is a strong UCI chess engine written in Zig.
June 2026 update: Avalanche now builds with Zig 0.16.0.
Latest (3.0.0 dev): estimated 3450-3500
Official 40/15 CCRL ELO (v2.1.0): 3346
Official Blitz CCRL ELO (v2.1.0): 3400
Version 2.1.0 participated in TCEC Swiss 6.
Avalanche is the first chess engine written in the Zig programming language, proving Zig's ability to succeed in real-world, competitive applications.
Avalanche was one of the earliest adopters of the NNUE (Efficiently Updatable Neural Network) technology for its evaluation.
This project isn't possible without the help of the Zig community, since this is the first Zig code I've ever written. Thank you!
MIT License.
zig build --release=fast
Avalanche now builds with Zig 0.16.0.
zig build --release=fast # optimized build -> zig-out/bin/Avalanche
zig build # debug build
zig build test # unit tests
./zig-out/bin/Avalanche bench # fixed-position benchmarkOlder Zig 0.10.x is no longer required.
Avalanche also has a lichess account (though not often played): https://lichess.org/@/IceBurnEngine
Avalanche follows the UCI protocol and is not a full chess application. You should use Avalanche with a UCI-compatible GUI interface. If you need to use the CLI, make sure to send \n at the end of your input (^\n on windows command prompt).
-
Dan Ellis Echavarria for writing the github action CI and helping me with Zig questions
-
Ciekce for guiding me with migrating to the new Marlinflow and answering my stupid questions related to NNUE
-
Many other developers in the computer chess community for guiding me through new things like SPRT testing.
-
https://www.chessprogramming.org/ for explanation on everything I need, including search, tt, pruning, reductions... everything.
-
https://github.com/nkarve/surge for movegen inspiration.
-
Maksim Korzh, https://www.youtube.com/channel/UCB9-prLkPwgvlKKqDgXhsMQ for getting me started on chess programming.
-
https://github.com/dsekercioglu/blackmarlin for NNUE structure and trainer skeleton (1.5.0 and older)
-
https://github.com/Disservin/Smallbrain and https://github.com/cosmobobak/viridithas for search ideas
-
https://openai.com/dall-e-2/ for generating the beautiful logo image
- General
- This is the first released chess engine written in the Zig Programming Language. Although there are Zig libraries for chess, Avalanche is completely stand-alone and does not use any external libraries.
- Move Generator
- Algorithm is inspired by Surge, but code is 100% hand-written in Zig.
- Search
- Avalanche has a simple Search written 100% by myself, but is probably a subset of many other engines. Some ideas are borrowed from other chess engines as in comments. However many ideas and parameters are tuned manually and automatically using my own scripts.
- Evaluation
- The Hand-Crafted Evaluation is based on https://www.chessprogramming.org/PeSTO%27s_Evaluation_Function with adaptation to endgames. The HCE is only activated at late endgames when finding checkmate against a lone king is needed.
- NNUE since 2.0.0 is trained with https://github.com/jw1912/bullet
- The NNUE data since 2.0.0 is purely generated from self-play games.
- UCI Interface/Communication code
- 100% original
