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:
- Download Python
- Download Pycharm or IntelliJ (We recommend using Pycharm as this is the IDE we use to build this program)
- Add the package for Pygames
- When you open the project in the IDE, the file and folder structure should look like this below.
- Open the project in either IDE and open the main.py file and select run in the program starting in the main.py file.
- 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.
- You can now play chess with the AI.