This project is now buildable with CMake, so it can run on both Windows and macOS (and Linux) instead of only the Visual Studio solution.
- CMake 3.21+
- C++17 compiler
- Windows: MSVC (Visual Studio 2022)
- macOS: AppleClang (Xcode command line tools)
- SFML 3 (Graphics + Audio)
vcpkg install sfmlThen configure with the vcpkg toolchain:
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=C:/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Releasebrew install sfml
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build buildFrom the build output directory:
- Windows (multi-config generator):
.\build\Release\ChessAI.exe - macOS/Linux:
./build/ChessAI
The build copies runtime assets (img, sound, font) next to the executable automatically.
debug.h now defaults to:
stockfish.exeon Windowsstockfishon macOS/Linux
So if Stockfish is on your PATH, the perft comparison helper works on all major desktop platforms.