https://github.com/garyhilares/chess
A chess game interface created using SFML and C++.
https://github.com/garyhilares/chess
chess cpp game sfml
Last synced: about 1 year ago
JSON representation
A chess game interface created using SFML and C++.
- Host: GitHub
- URL: https://github.com/garyhilares/chess
- Owner: GaryHilares
- License: cc-by-4.0
- Created: 2021-08-17T14:56:14.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T01:41:48.000Z (about 2 years ago)
- Last Synced: 2024-05-23T02:39:54.101Z (about 2 years ago)
- Topics: chess, cpp, game, sfml
- Language: C++
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Chess
## Useful links
- [Project's Style Guide (WebKit)](https://webkit.org/code-style-guidelines/)
## What is Chess?
Chess is a virtual chess board that you can use to play this thought-provoking sport.
### Features
- **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.
### Platforms
- Cross-platform
### Dependencies
#### Development
- SFML
## Motivation
I like chess, so I made this game for fun and to practice my C++ skills.
## Installation and usage
You can build the project from source by following the next steps:
1. Prepare the external libraries:
1. Get SFML 2.5.1.
- You can look at how to get SFML [here](https://www.sfml-dev.org/tutorials/2.5/).
2. Order the external libraries:
1. Create a folder called `extlibs` in the root folder.
2. Add the external libraries here. The minimal `extlibs` folder should look like this:
```
| extlibs/
|--- SFML-2.5.1/
|------- bin/
|------- include/
|------- lib/
```
2. Build Chess:
1. Fork the repository on GitHub.
2. Go to your fork of the repository and copy the link to clone your repository.
3. Go to Git on your local machine and use the command `git clone (your link)`.
4. Set the variable CMAKE_BUILD_TYPE in `CMakefiles.txt` to "Release" or to "Debug" depending on what you want to build.
5. Use CMake to generate makefiles from `CMakelists.txt`.
6. 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!
## Contributors
Thanks to these wonderful people for making Chess possible!
## License
This work is licensed under a [Creative Commons Attribution 4.0 International License](https://github.com/GaryHilares/Chess/blob/main/LICENSE).