The 15 puzzle (also called Gem Puzzle, Boss Puzzle, Game of Fifteen, Mystic Square and many others) is a sliding puzzle having 15 square tiles numbered 1–15 in a frame that is 4 tiles high and 4 tiles wide, leaving one unoccupied tile position. Tiles in the same row or column of the open position can be moved by sliding them horizontally or vertically, respectively. The goal of the puzzle is to place the tiles in numerical order.
- Technology stack: sfml, c++17, spdlog, google test, doxygen, cmake
- Status: v.1.0
- Architecture: MVC
first pictures | second pictures |
---|---|
The key bindings are: ↑, ↓, ←, →. F2
$ git clone https://github.com/dosart/Fifteen-Puzzle-Game.git
$ cd Fifteen-Puzzle-Game
$ git submodule init && git submodule update
$ sudo apt-get install libsfml-dev
$ sudo apt-get install libgtest-dev
$ mkdir build && cd build
$ cmake .. && make -j