Skip to content

Chess.AI: Unleash AI's power in chess with a sleek Python engine. Elevate chess to new heights.

Notifications You must be signed in to change notification settings

AnasMohammad4321/Chess-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess AI

Table of contents

Description

This project implements a chess AI that can play against a human player or another AI. The AI uses the minimax and negamax algorithm with alpha-beta pruning to search for the best move.

Components

  • main.py - The main driver file that handles user input, graphics, and game logic.
  • Mechanics.py - Contains the GameState class that tracks the current state of the chess game.
  • AI_Engine.py - Contains the minimax alpha-beta search algorithm and board evaluation function.

Technologies

  • Python 3.9.13
  • pygame 2.3.0

Setup

  1. Install Python 3.9.13 and Pygame 2.3.1
  2. Clone this repository
  3. Run python main.py
  4. Select to play against the AI, watch the AI vs AI, or play local multiplayer
  5. Have fun!

Controls:

  • Click to select a piece and see possible moves
  • Click again to make a move
  • a to undo a move
  • s to reset the game
  • d to toggle background music

Interface:

Main Menu

Options

Multiplayer

About

Chess.AI: Unleash AI's power in chess with a sleek Python engine. Elevate chess to new heights.

Topics

Resources

Stars

Watchers

Forks

Languages