Skip to content

PierreBhs/chessfml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Chess Implementation with SFML 3.0

Wanted to try the latest release of SMFL (https://www.sfml-dev.org/documentation/3.0.0/) with some newer features. Implemented a little Chess game that lets you play against AI (albeit a dumb one as of now) or against a Human.

Features

  • Complete chess rule implementation including special moves (castling, en passant, promotion)
  • Multiple game modes:
    • Human vs Human
    • Human vs AI (play as white or black)
  • Game state loading with FEN notation

Requirements

  • C++23 compatible compiler (GCC 14+, Clang 18+ ...)
  • CMake

Building the project

git clone git@github.com:PierreBhs/chessfml.git
cd chessfml

cmake -S . -B build
cmake --build build

./build/chessfml

Project Structure

  • src/game/ - Core chess logic and game state management
  • src/states/ - Game state handling (menu, gameplay, etc.)
  • src/ui/ - Rendering and user interface components
  • src/common/ - Utilities and common functionality
game_demo.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors