Skip to content

This is a modified version of the classic checkers game created for academic purposes as a project for the AI Laboratory. The game introduces unique features, including vertical piece movements , special power pieces such as archers, king, and hero. The AI is implemented using the Min-Max algorithm with a depth level of 3 for strategic gameplay.

License

Notifications You must be signed in to change notification settings

abrarhasan3/Modified-Checkers-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Modified-Checkers-Game

This is a modified version of the classic checkers game created for academic purposes as a project for the AI Laboratory. The game introduces unique features, including vertical piece movements , special power pieces such as archers, king, and hero. The AI is implemented using the Min-Max algorithm with a depth level of 3 for strategic gameplay.

Table of Contents

Features

  • Modified Gameplay: vertical piece movements instead of diagonal.
  • Special Power Pieces:
    • Archers: Unique movement capabilities.
    • King: Special privileges and strategic advantages.
    • Hero: A powerful piece with enhanced abilities.
  • AI Opponent: Implements Min-Max algorithm for intelligent decision-making.
  • Depth Level 3: Balances between strategic thinking and computational efficiency.

AI Strategy

The AI opponent in this game employs the Min-Max algorithm with a depth level of 3. This ensures strategic decision-making while maintaining computational efficiency. The algorithm explores possible moves up to three levels deep to determine the best move based on the current state of the board.

Requirements

  1. Python 3.9.12
  2. Pygame 2.3.0

Installation

  1. Clone the repository:

    git clone https://github.com/abrarhasan3/Modified-Checkers-Game.git
  2. Run Checkers>Main.py and play the game.

How to play

As this is a two player game, there two color of pieces.

  1. White (AI)
  2. Black (Human)

There are Four type of pieces in this game.

1. Soldier Piece 2. Archer Pieces
3. King Pieces 4. Hero Pieces

Board Setup

The board has 8 piece in each team. Among them 2 are archers.

Valid Moves

1. Soldier piece can move front vertically. It can not move back.
2. Archer piece can move front vertically or diagonally. It can not move back
3. King piece can move front vertically or diagonally and it can come back one cell.
4. Hero piece can move front and bach in both vertically or diagonally.

Special Piece Conversion

1. If the soldier piece can reach the other end of the board it becomes a king.
2. When the Archer piece reaches the other end of the board it becomes a hero.

Strategy

1.Solder piece can vertically jump over the opponent piece and capture them.
2. Archer piece can capture diagonally or vertically in front.
3. King piece can capture diagonally or vertically in front or one box behing.
4. Hero piece can capture diagonally or vertically in front or back direction.
5. Two opponent pieces can be captured at one move if double hop is possible.

Screenshots

There are some screenshot of game.

Welcome Screen
Game Starts
Captured Some Pieces
Human Player Loses

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to enhance the game.

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/YourFeature.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/YourFeature.
  5. Open a pull request.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code for academic and educational purposes.

Authors

About

This is a modified version of the classic checkers game created for academic purposes as a project for the AI Laboratory. The game introduces unique features, including vertical piece movements , special power pieces such as archers, king, and hero. The AI is implemented using the Min-Max algorithm with a depth level of 3 for strategic gameplay.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages