BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
BenBot

A UCI chess engine.

This is a command-line chess playing program, designed to be used with a chess GUI.

Strength

We are currently using a handcrafted evaluation. The engine's Elo is estimated at 2730 ± 28 (v1.7.5-851-g43e752f3), from a gauntlet against Stockfish's UCI_Elo levels (see tests/fastchess/README.md).

Repository layout

  • Board representation and move generation is in libchess/
  • Evaluation and search is in libbenbot/
  • ben-bot/ is the actual engine executable
  • gui/ contains the implementation of the ImGUI app

See each subdirectory's readme for details.

Links

Building

Building requires CMake and C++23.

All dependencies are fetched via FetchContent, so everything should "just work" out of the box.

CMake presets are provided for IDE integration, but are not mandatory.

Notes on building:

  • If using gcc, at least version 14 is required
  • Clang on Linux may need the -stdlib=libc++ flag in order to find std::expected. This flag is added by the clang configure preset.

Our automated CI & releases include the following builds:

OS Compiler
Ubuntu Clang
Ubuntu GCC
Windows Clang
Windows MSVC
MacOS Clang

CMake options

  • BENBOT_GUI: if on, builds the ImGUI app (defaults to off unless this is the top-level project)
  • BENBOT_TUNER: if on, builds the eval tuner & its unit tests (defaults to off). See tools/tuner/README.md for details.
Note
The GUI application has additional dependencies & requirements, which may vary by target platform. See gui/README.md for details.

Thanks

Special thanks to the following open source chess projects, which have provided guidance and inspiration (in no particular order):