A Chess game I made for fun, currently working on making a React frontend for this particular application.
-
Clone the repository.
git clone https://csil-git1.cs.surrey.sfu.ca/373-19-1-faworki/adventure2019.git
-
Create a new directory for building.
mkdir build
-
Change into the new directory.
cd build
-
Run CMake with the path to the source.
cmake ../
-
Run make inside the build directory:
make
This produces a "ChessV2" executable inside of the directory inside of build and it can be run to played a text-based version of chess where the commands are entered using Chess Algebraic Notation. In the future a React frontend will be created as a GUI instead of having a text based game. If you want to run unit tests they are shuold be inside of ChessV2/build/test/runAllTests executable.
When running the application you should something that looks like this.....
The lower-case characthers such as 'p' means it is a "White Pawn" while "P" corresponds to a "Black Pawn"
To make a move specify the initial position of the piece followed by a comma and then the ending position of the piece. So for example to move the left-most white pawn 2 squares forward we would type in.
"a6,a4" (In chess algebraic notation it is column first than row)
In the future a React frontend would serve as the GUI and clicking will be included instead of having to type out manually the Chess Coordinates.
This project requires:
- C++17 or newer
- PythonInterp (For googletest)
- CMake >= 3.1