Two Player Chess aims to create a two-player chess game using C programming language by raylib library. This README file provides an overview of the project, instructions for running the game, and additional information for contributors.
The Two Player Chess project includes the following features:
-
Chessboard: The game provides an 8x8 chessboard on which the gameplay takes place.
-
Piece Movement: Players can move their pieces according to the rules of chess.
-
Turn-based Gameplay: The game enforces turn-based gameplay, allowing each player to take turns making their moves.
-
Valid Move Validation: The game validates the legality of moves to ensure that players adhere to the rules of chess.
-
Check and Checkmate Detection: The game detects when a king is in check or checkmate, signaling the end of the game.
-
Draw and Stalemate Detection: The game can detect situations where a draw or stalemate occurs.
-
Console Interface: The game provides a user-friendly console interface for players to input their moves and view the game state.
-
Castle: Players can castle the king to king/queen side.
-
Pawn Promotion: Players get a queen when one of his pawn reaches the other side of the chess board.
-
Sound Effects: Elevating the interactive experience to new heights, the capstone project introduces captivating sound effects that accompany each strategic move of the chess pieces.
To run the Two Player Chess game, you need to have the following installed on your system:
• C/GCC Compiler: The game is built using C programming language. It is suggested to use VSCode and after installing the compiler, we need to set its path to environment path variables because it allows the C program to compile from any directory on your computer.
• Raylib: raylib is a simple and easy-to-use library to enjoy videogames programming. You can download raylib from the link https://github.com/raysan5/raylib/releases/latest. You can download raylib library from the website https://www.raylib.com/. Notepad++ comes with the downloaded raylib library in which you can get started with two-player-chess.
Follow the steps below to get started with the Two Player Chess:
• Clone the repository and copy it to the raylib project directory which you downloaded earlier.
• Open the Project directory using an IDE. For Example: If you are using VSCode, open the folder you downloaded using VSCode.
• Run the Game: Execute the code using Build (F5).
• Game console runs using mouse input.
• Enjoy the game: Play against another human player and have fun!
• Two-Player-Chess was developed as a capstone project for Course (CS1P001, Introduction to Programming and Data Structures), IIT Bhubaneshwar . We acknowledge the guidance and support provided by the faculty and mentors throughout the project.
• The Two-Player-Chess logic is based on the open-source library raylib. We thank the developers for their valuable contribution.
Happy Chessing!
