Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.09 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.09 KB

SFML Chess!

Fully functional game of chess written in C++ and SFML (2.5.1).

Controls are simple - press a square and drag a piece or press on another square to move. LeftArrow to undo a move, RightArrow to redo.

A screenshot from the game

Build it yourself:

  1. Install dependencies:

    • Arch Linux:
      sudo pacman -S cmake sfml nlohmann-json
    • Debian / Ubuntu:
      sudo apt-get install cmake libsfml-dev nlohmann-json3-dev
  2. Build project and run:

bash -c "git clone https://github.com/matihope/Chess.git && \
    cd Chess && \
    cmake -B build && \
    cd build && \
    make && \
    cd ../bin && \
    ./chess"

It's important to note, that to launch the game, you have to be inside the bin folder.

List of attributions: