https://github.com/junaidsalim/checkers
A checkers game developed in C++, implementing the rules and gameplay using classes.
https://github.com/junaidsalim/checkers
checkers-game cpp game
Last synced: 6 months ago
JSON representation
A checkers game developed in C++, implementing the rules and gameplay using classes.
- Host: GitHub
- URL: https://github.com/junaidsalim/checkers
- Owner: JunaidSalim
- Created: 2023-06-28T12:25:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T16:38:28.000Z (over 1 year ago)
- Last Synced: 2025-02-11T13:52:28.336Z (8 months ago)
- Topics: checkers-game, cpp, game
- Language: C++
- Homepage:
- Size: 192 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Checkers
Instructions for making Checkers game is given in instructions.pdf
Introduction:
This is a checkers game developed in C++ by Junaid Saleem. It is a classic board game where two players take turns moving their pieces on an 8x8 grid. The game follows the standard rules of checkers, implementing the necessary functionalities using classes.Instructions:
1. The game is played on an 8x8 grid with alternating light and dark squares, forming a checkerboard pattern.
2. Each player starts with twelve pieces placed on the dark squares closest to their edge of the board.
3. The pieces are differentiated by numbers 1 and 0 for red and black
4. Players take turns moving their pieces, with red making the first move.
5. Non-king pieces can move diagonally forward to an adjacent empty square.
6. Kings can move diagonally forward or backward to an adjacent empty square.
7. Jumping is allowed to capture an opponent's piece by jumping over it diagonally to the adjacent vacant square beyond.
8. Multiple jumps can be made in a single move, capturing multiple opponent's pieces, with the option to change directions.
9. When a piece reaches the last row (the King Row), it becomes a king and gains the ability to move and jump backward.
10. The game continues until one player is unable to move because they have no pieces left or all of their pieces are blocked.
11. Players can resign or agree to draws.Note: This implementation does not include any graphical interface and is purely text-based.
Usage:
1. Clone the repository to your local machine.
2. Compile the C++ source code using a C++ compiler.
3. Run the compiled executable to start the game.
4. Follow the on-screen instructions to make moves and play the game.
5. The game will display the board and prompt each player for their move.
6. Input your moves using the specified format and press enter.
7. Continue playing until the game reaches a conclusion.
8. Enjoy the game of checkers!Have fun playing the Checkers Game and enjoy the strategic challenges it offers!