Skip to content

fairy-stockfish/bookgen

Repository files navigation

bookgen

EPD opening book generator based on Fairy-Stockfish.

Bookgen extends Fairy-Stockfish by the possibility of automatically generating opening books for all supported chess variants, including Chess, Xiangqi, Shogi, Crazyhouse, Antichess, Atomic, etc.

Several methods for generation and filtering of positions in FEN format are supported to adapt the book to specific requirements. The generation can be based on perft and multipv searches. The filtering supports a variety of options to define the criteria for evaluation of positions to be included. The output format is EPD. See the Wiki for documentation and usage examples.

Built binaries for Windows and Linux can be downloaded from the releases. Development versions can be downloaded from the release workflow (requires logging in to github).

Instead of downloading it, you can also use the online book generator (code), which uses the WebAssembly port.

There are separate (older) versions based on specialized variant forks, such as official Stockfish, multi-variant Stockfish, Seirawan-Stockfish, Shatranj-Stockfish, and Makruk-Stockfish that can be found on the respective branches, but the Fairy-Stockfish based version supports all of these variants as well.

Also see the Fairy-Stockfish repository for more info.