Skip to content

maxim-veksler/cpp_chess_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Chess Bot

A simple chess engine.

Usage

chess.exe [options]

  • -h Shows the available options
  • -f <FEN|default> Allows non-interactive FEN entry
  • -b <unicode|ascii> Allows forcing the board display mode. Defaults to Ascii on Windows and Unicode elsewhere.
  • -c <white|black> Allows setting the color used. Defaults to white.
  • -d <depth> Allows setting the move search depth. Defaults to 8.

Testing

Setup CMake

macOS:

brew install cmake

Running

Run cmake with the source directory . and the build directory build. Then, "build a CMake-generated project binary tree". Finally, use build as the working directory and run ctest.

cmake -S . -B build
cmake --build build
cd build && ctest

Building the tests requires C++17 for use of the filesystem built-in namespace to perform path building.

Continuous Integration (CI)

There is a GitHub Actions workflow defined in .github/workflows that will run the tests on Ubuntu, Windows, and macOS.

About

A UCI chess engine made in C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors