Chess is a virtual chess board that you can use to play this thought-provoking sport.
- Detects illegal moves: If you mistakenly play a piece to a square you're not allowed, the piece will automatically return to its place. Supports en-passant, promotion and castling, of course.
- Free & open source: You don't have to pay for anything. Really! Moreover, you have access to the code, so you can tweak anything you'd like.
- Cross-platform
- SFML
I like chess, so I made this game for fun and to practice my C++ skills.
You can build the project from source by following the next steps:
- Prepare the external libraries:
- Get SFML 2.5.1. - You can look at how to get SFML here.
- Order the external libraries:
1. Create a folder called
extlibs
in the root folder. 2. Add the external libraries here. The minimalextlibs
folder should look like this:| extlibs/ |--- SFML-2.5.1/ |------- bin/ |------- include/ |------- lib/
- Build Chess:
- Fork the repository on GitHub.
- Go to your fork of the repository and copy the link to clone your repository.
- Go to Git on your local machine and use the command
git clone (your link)
. - Set the variable CMAKE_BUILD_TYPE in
CMakefiles.txt
to "Release" or to "Debug" depending on what you want to build. - Use CMake to generate makefiles from
CMakelists.txt
. - Use the generated makefiles to build Chess.
After doing this, Chess should appear inside a folder in build/
.
You can run the executable from the command line or by double clicking it. You're ready to play!
Thanks to these wonderful people for making Chess possible!
This work is licensed under a Creative Commons Attribution 4.0 International License.