What This Program Does:
— An object-oriented game of chess with inheritance, with a class for pieces in general, each type of piece, and the board. Has a total of 18 methods.
How to Build and Run:
In Replit:
-
Create an account on replit.com if you don’t have one
-
Click on the REPL link above
-
Remix this app
-
Click on >_Console tab
-
Run
-
To run tests, input y. To play the game, input n.
-
Find a friend and try not to brag too much when you win.
In the Terminal:
Requires C++ 17
-
Go to the above GitHub link, click on Code, and copy the URL from the HTTPS tab
-
In the terminal: git clone
-
If you don’t have command line tools installed:
xcode-select –install
-
Click Install when the pop-up comes up
-
Agree to the License Agreement
-
Wait about 15 minutes for installation to complete
-
In the terminal, navigate to the game’s directory:
cd Chess
- Compile:
clang++ -std=c++17 *.cpp -o Chess
- Run:
./Chess
-
To run tests, input y. To play the game, input n.
-
Find a partner and checkmate them.
Note:
— This was a homework assignment and the test suite was written by the professor.