jamiely / cpp_chess_bot

Basic chess engine coded in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Continuous Integration (CI)

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

About

Basic chess engine coded in C++.

License:MIT License


Languages

Language:C++ 75.5%Language:C 23.2%Language:CMake 1.2%