cordova-jon1618 / chess-ai-python-project

Chess AI Python Project for COMP 469

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chess-ai-python-project

Chess AI Python Project for COMP 469

Meet the Team:

Jonathan Cordova @cordova-jon1618 - https://github.com/cordova-jon1618

Alvaro Lopez-Romero @alvarolopezromero - https://github.com/alvarolopezromero

CSUN Spring 2023 - COMP 469 - Introduction to Artificial Intelligence

About: Our project is an AI Chess Game Project using Python. We are utilizing Python and Pygame (which is a cross-platform set of Python modules designed for writing video games). Our project features a graphical user interface (UI) that allows users to move the chess pieces on the board, with each piece type having their own movement functionality. The current state of the board is converted into a matrix, and then used as input into the Minimax Algorithm with Alpha-Beta Pruning, this will allow the AI to select an optimal move. Afterwards the user can make their chess move and then click a UI button so that the algorithm runs the algorithm to calculate the next move, hence, playing chess with an AI algorithm.

How to run our project:

  1. Download Python

image

  1. Download Pycharm or IntelliJ (We recommend using Pycharm as this is the IDE we use to build this program)

image

  1. Add the package for Pygames

image

  1. When you open the project in the IDE, the file and folder structure should look like this below.

image

  1. Open the project in either IDE and open the main.py file and select run in the program starting in the main.py file.

image

  1. Upon running the program, you should see a Chess board, you can run the AI using “Start”, clear the board with “Reset” after moving pieces around the board, or LEFT mouse click to select a piece, or RIGHT mouse click to unselect the piece.

image

  1. You can now play chess with the AI.

About

Chess AI Python Project for COMP 469


Languages

Language:Python 100.0%