Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔴⚫ Python Checkers with AI ⚫🔴

Welcome to a classic game of Checkers, brought to life with Python and Pygame! This project is not just a simple board game; it's a fully functional application featuring a challenging AI opponent powered by the Minimax algorithm. Test your strategic skills against a computer that thinks moves ahead!

Note: This project was developed as a comprehensive exercise in game logic, object-oriented programming, and fundamental AI implementation.

🎮 Play Now

Click the green < > Code button and select "Download ZIP" to get all the files or you can also clone this repository.

🚀 Features

Classic Checkers Gameplay: All standard rules are implemented, including forced captures.

Intelligent AI Opponent: Play against an unbeatable AI that uses the Minimax algorithm with alpha-beta pruning to calculate the optimal move.

Interactive GUI: A clean and responsive graphical interface built entirely with the Pygame library.

Valid Move Highlighting: When you select a piece, all possible legal moves are highlighted, making the game intuitive and user-friendly.

King Promotion: Reach the opponent's side of the board to have your pieces crowned as Kings with the ability to move backward.

Clear Winner Detection: The game automatically detects and announces the winner when a player has no more pieces or no more legal moves.

💻 How to Run Locally

Want to dive into the code? Here’s how to get the project running on your own machine.

Prerequisites

Python 3.x

pip (Python package installer)

Installation & Execution

Run the game!

Generated bash python main.py IGNORE_WHEN_COPYING_START content_copy download Use code with caution. Bash IGNORE_WHEN_COPYING_END

🛠️ Core Technologies Used

Language: Python 3

Library: Pygame (for the game engine, graphics, and user input)

Algorithm: Minimax (for the artificial intelligence)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages