Giter Site home page Giter Site logo

15-puzzle-gui's Introduction

๐Ÿงฉ 15-Puzzle-gui

This project is an extended version of my previous 15 Puzzle CLI project, now featuring a graphical user interface (GUI) built using the SFML library. The 15 Puzzle game is a classic sliding puzzle where the objective is to arrange the tiles in ascending order, leaving an empty space for tile movement.

Screenshot 2023-08-23 183750

๐Ÿ“” Table of contents

๐Ÿ”ฅ New features

  • Arrow key input - move tiles using the arrow keys
  • Mouse input - move tiles by clicking on them with the mouse
  • GUI - CLI replaced with SFML

๐ŸŒ Original CLI Project

For the original 15 Puzzle CLI project, you can visit here.

๐Ÿ•น๏ธ How to Play

  • Use mouse clicks or keyboard arrows/WASD to move tiles and arrange them in order.
  • The game is won when tiles are in ascending order, from top-left to bottom-right, with an empty space at the bottom-right corner.

๐ŸŽฏ Running the game

  1. Download the game from releases
  2. Extract 15-Puzzle-gui.zip file
  3. Run the exe from the extracted folder

๐Ÿ“‘ Dependencies

  • SFML (Simple and Fast Multimedia Library): Required for graphical rendering and input handling.

NOTE: this is needed for those who want to compile, if you want to run the game see Running the game

๐Ÿ–ฅ๏ธ Compiling from source

  1. Make sure you have SFML installed. You can download it from here.
  2. Clone this repository.
  3. Include SFML library to the project(Include and Lib, tutorial here)
  4. Compile the source files using Visual Studio or your preferred IDE.

๐Ÿ“œ License

This project is licensed under the GPL v2 LICENSE.

Enjoy the challenge of solving the 15 Puzzle!

15-puzzle-gui's People

Contributors

edveika avatar

Watchers

 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.