Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.



   Donna is experimental chess engine implemented in Go. Donna comes with
   interactive command line shell and supports standard UCI (universal chess
   interface) protocol. Its technical features include:

   Data Structures
     - Magic bitboards
     - Transposition table
     - Material imbalance table
     - Pawn cache

   Move Generation
     - All possible and all valid moves
     - Captures and pawn promotions
     - Checks and check evasions

     - Root, tree, and quiescence searches
     - Aspiration windows
     - Iterative deepening
     - Search depth extensions
     - Alpha/beta pruning
     - Mate distance pruning
     - Razoring
     - Futility margin pruning
     - Null move pruning
     - Late move reduction
     - Delta pruning for captures
     - Good and killer move heuristics
     - Insufficient material and repetition detection

   Position Evaluation
     - Piece/square bonuses
     - Material with imbalance adjustment
     - King safety and pawn shield quality
     - Castling rights
     - Piece mobility
     - Control of the center
     - Threats and hanging pieces
     - Passed, isolated, doubled, and backwards pawns
     - Trapped rooks and bishops
     - Known and lesser known endgames
     - Bitbase for King + Pawn vs. King endgames

   Game Controls
     - Maximum search depth
     - Time to make a move
     - Time control for certain number of moves
     - Time increment

     - UCI protocol support
     - Interactive read–eval–print loop (REPL)
     - Polyglot opening books
     - Go test suite with 300+ tests
     - Donna Chess Format to define chess positions in human-readable way


   The latest versions of Donna executables are available for download at

   64-bit builds are provided for Windows, Mac OS X, Linux, and FreeBSD.


   To build Donna you will need Go v1.3 or later installed on your system (see From Donna source directory run "make" or "go build"

   $ go build -o ./bin/donna -gcflags -B


   Donna chess engine can be used with any chess GUI software that supports UCI
   protocol. You can also launch Donna as standalone command-line program and
   play against it in interactive mode:

   $ ./donna -i
   Donna v4.1 Copyright (c) 2014-2018 by Michael Dvorkin. All Rights Reserved.
   Type ? for help.


   Donna supports Polyglot chess opening books. Free opening books are available
   for download at To connect
   the opening book set DONNA_BOOK environment variable:

   $ export DONNA_BOOK=~/chess/books/gm2001.bin


   Donna's chess ratings are available at Computer Chess Rating Lists site at


   Donna stands on the shoulders of the giants and it would never have been
   possible without them. My gratitude goes to:

   - Aaron Becker, Daydreamer
   - Fabien Letouzey, Senpai
   - Igor Korshunov, Murka
   - Jon Dart, Arasan
   - Steve Maughan, Maverick
   - Tom Kerrigan, TSCP
   - Tord Romstad, Marco Costalba, and Joona Kiiski, Stockfish
   - Vadim Demichev, Gull
   - Vladimir Medvedev, GreKo

   Special thanks goes to my old time buddy grandmaster Eduardas Rozentalis who
   inspired me to develop a chess engine.


   Donna chess engine is dedicated to Lithuanian grandmaster Donatas Lapienis,
   the man who taught me how to play chess, among other things. In the mid
   1980's (pre-computer era), Donatas was the highest ranking correspondence
   chess player in the world with ELO rating of 2715.


   Copyright (c) 2014-2018 Michael Dvorkin
   Donna is freely distributable under the terms of MIT license.

   I am making my contributions/submissions to this project solely in my personal
   capacity and am not conveying any rights to any intellectual property of any
   third parties.


Experimental UCI chess engine implemented in Go, download binaries at




No packages published


You can’t perform that action at this time.