A simple two-player chess game written in C++ using SFML 3.0 for rendering.
Press ESC
during gameplay to open the pause menu.
Planned improvements (in no particular order):
- Add a proper pawn promotion menu
- Improve code readability
- Enhance the look and feel of the menus
- Refactor certain sections for better efficiency
-
Create and enter a build directory:
mkdir build cd build
-
Generate build files and compile the project:
cmake .. cmake --build .
-
Run the program from the project root:
cd .. ./build/bin/chess
-
After making changes, rebuild and run with:
cmake --build build && ./build/bin/chess
If you prefer to compile manually, run:
clang++ src/*.cpp -I/opt/homebrew/include -L/opt/homebrew/lib \
-lsfml-graphics -lsfml-window -lsfml-system -std=c++17 -o chess
Then execute:
./chess