Code Monkey home page Code Monkey logo

sliding-puzzle's Introduction

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.

sliding-puzzle's People

Contributors

pkoper avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.