Play a classic game of chess built using the SFML library , Collaboratively completed with my project partner, showcasing advanced C++ features like pointers , dynamic memory and OOP features such as objects , abstraction , classes, inheritance. Each piece is a class that inherits from a base piece class, allowing for flexible behavior. The game is designed with clear, organized code, making it easy to maintain and enjoyable to play. Experience smooth gameplay with a strong foundation in modern programming techniques.
-Game Screenshots
-How to Play
-Installation
-Game Features
-Dependencies
-License
--> If you just want to play the game ,just download the Play Game folder and then:
Run the chess game.exe file in the folder :)
Linux:
- Clone the repostiory: https://github.com/Husnain56/Chess.git
- Build the project using your preferred C++ compiler: g++ -o bejeweled-blitz bejeweled-blitz.cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
Windows:
sfml--> https://www.sfml-dev.org/download/sfml/2.6.1/
visual studio 2022--> https://visualstudio.microsoft.com/vs/
Install Visual studio 2022 and sfml if you dont have and make a new project and link the folder to sfml and just copy paste all these files in that folder. open .sln file -> run main.cpp in visual studio :)
To link the folder with sfml : https://www.youtube.com/watch?v=lFzpkvrscs4&t=2s
Complete Game: Fully functional chess game from start to finish.
Mouse Interaction: Use the mouse to move pieces, making the game intuitive and easy to play.
Piece Movement: All chess pieces follow the correct movement rules.
King Check and Checkmate: The game detects when the king is in check or checkmate, ensuring proper endgame scenarios.
Stalemate: The game identifies stalemate situations, adhering to official chess rules.
Winner Display: The winner is displayed on the side of the screen at the end of the game.
Timer: A timer keeps track of the game duration, adding an element of time management.
The game handles moves of all types of pieces and the special moves such as pawn promotion , checks, pins , stalemate and checkmate.
Husnain Barkat Ali
Noor Ul Sabah
SFML Library: Simple and Fast Multimedia Library (SFML)
This project is licensed under the MIT License







