Skip to content

okrischer/ThinkChess.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThinkChess++

Build a chess app with C++ and learn to play along the way

GUI

If you have ever wondered how to program a simple chess app for yourself, this tutorial is the right starting point.

We are going to explore the mechanics of the game, how to maintain and display the gamestate, and how to find a good next move.

After working through this tutorial, you will not only have a running chess app, but also be proficient in playing chess at an amateur level.

Installation

  1. clone the repository
  2. change to your local copy
  3. initialize the build system with cmake -B build
  4. change to the build directory and execute cmake --build .
  5. start the app with ./ThinkChess

Requirements

You will need to have the following components installed on your machine:

  • a decent C++ compiler (any of the major compilers will do)
  • the git tool
  • the cmake tool
  • the required system packages for SFML

On Linux, all those components can be installed with your systems package manager (e.g. with apt-get on ubuntu).

For Mac OS, just use the included clang++ compiler and install missing components with homebrew: brew install git cmake sfml

Follow along the tutorial

This repository has several branches, each dedicated to a chapter of the tutorial. If you want to follow along the tutorial, check out the code for that chapter, e.g. git checkout chap1, and start working on the code from there.

The tutorial itself comes as a html file and is located in the docs directory. If you have pandoc installed on your machine, you can also build the documentation with pandoc -dhtml from that folder, which will produce the tutorial up to the given chapter.

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published