GaryHilares / Chess

A chess game interface created using SFML and C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chess

badge-lastcommit badge-openissues badge-license badge-contributors badge-codesize

chess

Useful links

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:
  2. Get SFML 2.5.1. - You can look at how to get SFML here.
  3. 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/
  4. Build Chess:
  5. Fork the repository on GitHub.
  6. Go to your fork of the repository and copy the link to clone your repository.
  7. Go to Git on your local machine and use the command git clone (your link).
  8. Set the variable CMAKE_BUILD_TYPE in CMakefiles.txt to "Release" or to "Debug" depending on what you want to build.
  9. Use CMake to generate makefiles from CMakelists.txt.
  10. 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.

About

A chess game interface created using SFML and C++.

License:Creative Commons Attribution 4.0 International


Languages

Language:C++ 92.5%Language:CMake 7.5%