Skip to content

pkoper/sliding-puzzle

Repository files navigation

Sliding Puzzle Game

Sliding Puzzle desktop game implemented in C++11 using SFML.

Features

  1. Sliding tiles using mouse or .
  2. Shuffling tiles Space or R.
  3. Solving puzzle S using IDA* or playback (as a failback).
  4. Changing matrix size J / K.
  5. Changing image I.
  6. Fullscreen F or F11.

Screenshot

Downloads

SlidingPuzzle-v1.0.zip (binaries and assets)

Compiling

Download and unpack SFML 2.2 library. Project files for Code::Blocks and JetBrains CLion are included.

JetBrains CLion (CMake)

Update the SFML_ROOT path in CMakeLists.txt file, eg:

set(SFML_ROOT "/Libraries/SFML-2.2")

Code::Blocks

Use included project files or see SFML and Code::Blocks (MinGW) tutorial.

Static Linking

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.

GUI Application

In the link step add a "-mwindows" switch to the command line to remove DOS command window or set the Type to GUI application.

About

Sliding Puzzle Game (SFML/C++11)

Resources

Stars

Watchers

Forks

Packages

No packages published