Skip to content

A checkers game developed in C++, implementing the rules and gameplay using classes.

Notifications You must be signed in to change notification settings

JunaidSalim/Checkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

A checkers game developed in C++, implementing the rules and gameplay using classes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages