A UCI-compatible hobby chess engine written in Zig.
- Position representation with bitboards
- Legal move generation
- Best move search using quiescence search, the minimax algorithm, and alpha-beta pruning
- UCI mode
- Terminal mode
Requires Zig 0.16+.
zig build --release=fastThe resulting binary is written to zig-out/bin/chessengine.
Play in the terminal:
./zig-out/bin/chessengine playor
zig build run -- playWith no arguments, the engine runs in UCI mode. Use any UCI-compatible GUI to play it (e.g. cutechess)
./zig-out/bin/chessengineMIT