Welcome to my chess engine project. This project was developed as part of my MSc in Computer Science.
The purpose of the engine is to simulate a chess game when provided with a series of moves.
ChessMain.cpp
shows an example game - the format of each move is given in long form notation (e.g. "A7H6" describes moving a piece from A7 to H6)
To run the chess program
- Clone this repository
- Enter this directory and
make
the relative files - run
./bin/chess
The program should run the chess game provided by ChessMain.cpp
in the terminal. An example output is shown below:
I have added a python script that will allow you to create the scripts for your own chess game that you find on chess.com.
To run your own game do the following:
- Go to chess.com and find a game that you wish to run
- Download the respective pgn file for the game
- Place the .pgn file in the
./Documents/InputPGNs/
folder, ensure that all white spaces are removed from the name - Run the
./generate_games/ChessScriptWriter.py
with any version of python (no non-core librarys required). A text file will be created in./Documents/OutputMoveScripts/
corresponding to your input. - Copy the contents fo the text file into ChessMain.cpp so it replaces the currrent chessboard script