- At least C++17
- SDL2
- SDL2_image
- Clone the repository
git clone --recursive https://github.com/AlejandroSuero/chess-game.git
# or
gh repo clone AlejandroSuero/chess-game -- --recursive
- Copy the sdl2 cmake files in their respective folders:
cp /path/to/chess-game/sdl2-config.cmake /path/to/SDL2/sdl2-config.cmake
cp /path/to/chess-game/sdl2-image-config.cmake /path/to/SDL2_image/sdl2-image-config.cmake
- Build the project
cd chess-game
make
Run the executable file chess-game
in the terminal or double click the file.
You can also run it from the command line using the following command after building the project:
make run
Note
You can also run make help
to see all the available commands.