Skip to content

15-puzzle, also called 'Tiles Game' or 'Puzzle of Fifteen'

License

Notifications You must be signed in to change notification settings

bitt4/15-puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

15-puzzle

15-puzzle, also called 'Tiles Game' or 'Puzzle of Fifteen' is sliding puzzle game, that consists of 15 numbered square tiles and one empty tile. The goal of the puzzle is to order the tiles by sliding, swapping with the empty tile.

Installation

Dependencies

Setup

git clone https://github.com/bitt4/15-puzzle.git
cd 15-puzzle
make
./15-puzzle

Usage

Options

Option Effect
--size NUM, -s NUM set size of game (number of tiles in one row)
--tile-width NUM, -w NUM set width of one tile
--font PATH, -f PATH set font file
--help, -h display help

Controls

You can either click on tile to move it to empty space, or use the arrow keys.

Key Description
🠉 Swipe up
🠋 Swipe down
🠊 Swipe right
🠈 Swipe left

The arrow controls might be a little difficult to use from the beginning. If that's the case, imagine it as using your finger to move the tiles.

Example

Unsolved

Solved

About

15-puzzle, also called 'Tiles Game' or 'Puzzle of Fifteen'

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published