Sliding Puzzle desktop game implemented in C++11 using SFML.
- Sliding tiles using mouse or ←↑↓→.
- Shuffling tiles Space or R.
- Solving puzzle S using IDA* or playback (as a failback).
- Changing matrix size J / K.
- Changing image I.
- Fullscreen F or F11.
SlidingPuzzle-v1.0.zip (binaries and assets)
Download and unpack SFML 2.2 library. Project files for Code::Blocks and JetBrains CLion are included.
Update the SFML_ROOT
path in CMakeLists.txt
file, eg:
set(SFML_ROOT "/Libraries/SFML-2.2")
Use included project files or see SFML and Code::Blocks (MinGW) tutorial.
To remove any runtime dependency you can statically link SFML (see examples below), or simply use included SlidingPuzzle.cbp project file and update SMFL paths.
In the link step add a "-mwindows" switch to the command line to remove DOS command window or set the Type to GUI application.