Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess AI (SFML)

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.

Requirements

  • CMake 3.21+
  • C++17 compiler
    • Windows: MSVC (Visual Studio 2022)
    • macOS: AppleClang (Xcode command line tools)
  • SFML 3 (Graphics + Audio)

Install dependencies

Windows (recommended: vcpkg)

vcpkg install sfml

Then configure with the vcpkg toolchain:

cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=C:/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Release

macOS (recommended: Homebrew)

brew install sfml
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

Run

From 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.

Notes for Stockfish debug helpers

debug.h now defaults to:

  • stockfish.exe on Windows
  • stockfish on macOS/Linux

So if Stockfish is on your PATH, the perft comparison helper works on all major desktop platforms.

About

Multiplayer Chess game with AI in C++

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages