Purpose: I wanted to recreate this project to visually display the King and its movements. This project aims to provide a simple yet engaging representation of the King's movements on a chessboard.
Background: To bring this concept to life, I chose to use SFML (Simple and Fast Multimedia Library) as the graphical display since it works seamlessly with C++ programming language. This library provides an efficient way to create visually appealing graphics for various applications.
Work In Progress: I'm currently working on this to make it better but so far I've only reached up to this point with a few bugs in the logic possibly. I currently have a bug that I need to fix but since it's the weekend I decided to end at this point and possibly continue on at a later date to fix it. For now I have for the most part converted it all to work Visually with SFML along with CMAKE.
-
Download
CMAKE
. -
A file named
CMakeLists.txt
is inside the root directory of this project. -
Open
CMAKE
and in theWhere is the source code:
navigate to the rootCMakeLists.txt
. -
In the
Where to build the binaries:
create abuild
folder preferably outside of the repo and point to that folder. -
Assuming you already have
CMAKE
configured correctly withVisual Studio 17 2022
clickGenerate
and once completed then open the project. -
Inside the IDE right click on
main
and clickSet as Startup Project
. -
Build the project.
-
Click
Play
(Debug) and watch the King move around the Chessboard.
CMake version used: cmake_minimum_required(VERSION 3.16)
Compiler: C++17