Skip to content

Repository files navigation

Chess Game

License: MIT

A two-player chess game built in C++ using object-oriented programming principles and pointers. Initially developed as a command-line application, the game now features a fully functional GUI using the Spinach framework (SDL-based).

Features

  • Legal Move Generation: Generates all legal moves for each piece while considering checks on the king, pinned pieces, and other constraints.
  • Move Suggestion: Highlights possible legal moves for selected pieces.
  • Check and Checkmate Detection: Implements checks for check and checkmate conditions.
  • Graphical User Interface: The game is now entirely playable with mouse clicks on a 2D board.

Future Features

  • A review system to browse previous board positions.
  • Move piece animations.

Credits

Demo

2DChessGame_Demo.mp4

Castling

20250417_084906 20250417_084919

En Passant

20250417_090359 20250417_090405 20250417_090409

Pawn Promotion

20250417_085133 20250417_085141 20250417_085149

About

A two-player chess game built in C++, featuring a GUI powered by the SDL-based Spinach framework

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Contributors

Languages