Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessAI

A simple chess engine with a graphical interface built using Python, Pygame, and python-chess. Includes a random AI agent and an Alpha-Beta pruning AI for move selection.

Features

  • Graphical user interface (GUI) built with Pygame.
  • Playable chess with legal moves enforced.
  • Random AI agent.
  • Alpha-Beta pruning AI for stronger play.
  • Highlighting for legal moves, promotions, and check situations.

Requirements

  • Python 3.8+

  • Dependencies (install via pip):

    pip install pygame chess

Running from Source

  1. Clone the repository:

    git clone https://github.com/ogaber1/ChessAI.git
    cd ChessAI
  2. Run the game:

    python main.py

Running the Executable

An executable version is included for convenience.

Important: Place the executable file in the same directory as the assets folder, otherwise the game will crash.

  1. Ensure main.exe and the assets/ folder are in the same directory.
  2. Double-click main.exe to run the game.

Game Modes

  • Human vs. Random AI
  • Human vs. Alpha-Beta AI
  • Random AI vs. Alpha-Beta AI

Credits

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages