Skip to content

Repository files navigation

DuckChess

CI

DuckChess logo

A UCI chess engine written in Rust.

Basic usage

You can use any chess UI that knows how to talk to engine with UCI. I use en-croissant, Chessifier (now Pawn Appetit) works as well. Play it on Lichess via https://lichess.org/@/DuckChessEngine!

Running as a Docker container

cp .env.example .env
# Edit .env with your Lichess bot API token
docker compose up -d

The container builds the engine from source, bundles it with lichess-bot, and runs in the background. Use docker compose logs -f to watch output, docker compose down to stop.

Opening book

The engine supports an opening book (PGN). Set the path with the UCI option BookPath and enable OwnBook (default: true). When the current position is in the book, the engine plays a random book move. Example: opening_books/8moves_v3.pgn (from Stockfish books).

About

UCI-compliant chess engine

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages