Skip to content

PierceProvias/Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Game with SDL2

This is a simple chess game built using SDL2 and CMake for compilation. It allows two players to play chess on a graphical interface with basic features like piece movement, board setup, and game logic.

Requirements

  • CMake (v3.10 or higher)
  • SDL2 (v2.30.0 or higher)
  • A C++ compiler (e.g., GCC, Clang)

Installing Dependencies

  1. SDL2:

    • On Ubuntu:
      sudo apt-get install libsdl2-dev
    • On macOS (using Homebrew):
      brew install sdl2
    • On Windows, you can download SDL2 from the SDL2 website and follow the installation instructions.
  2. CMake:

    • On Ubuntu:
      sudo apt-get install cmake
    • On macOS:
      brew install cmake
    • On Windows, you can download and install CMake from the official website.

Building the Project

  1. Clone the repository:
    git clone https://github.com/PierceProvias/Chess.git
    cd chess
    
  2. Make build folder
    mkdir build && cd build
    
  3. Build project
    cmake -S .. -B .
    make
    
  4. Play chess
    ./chess
    
    

About

Chess clone using SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published