Skip to content

A Python chess multiplayer game paired with a Chess AI. Moves calculated with a minimax algorithm optimized with alpha beta pruning.

Notifications You must be signed in to change notification settings

RaghavVerma24/ChessAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 

Repository files navigation

ChessAI

Pygame Python

A Python chess game with an inbuilt AI that uses the Minimax algorithm with Alpha-Beta pruning and a heuristic evaluation. The game features different levels of AI difficulty, and allows for both single player and two player.

Technologies Used

  • Python: A popular programming language known for its simplicity, readability, and versatility. It is widely used for various applications, including game development.
  • Pygame: A set of Python modules designed for writing video games. It provides functionality for drawing graphics, handling user input, and managing game logic, making it a popular choice for creating 2D games.

Features

  • Play chess against the computer with an inbuilt AI.
  • AI uses the Minimax algorithm with Alpha-Beta pruning for optimal move selection.
  • Heuristic evaluation to improve AI's decision-making.
  • GUI interface using Pygame for a user-friendly chess playing experience.
  • Support for standard chess rules, including castling, en passant, pawn promotion, etc.

Visuals

image

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/RaghavVerma24/ChessAI
    
  2. Install dependecies:

    pip install
    
  3. Run the game:

    cd src
    python main.py
    

Contributing

If you would like to contribute to the project, feel free to submit a pull request. Please ensure that your changes are in line with the project's coding standards and practices.

License

This project is open-source and available under the MIT License.

About

A Python chess multiplayer game paired with a Chess AI. Moves calculated with a minimax algorithm optimized with alpha beta pruning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages