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.
git clone https://github.com/bitt4/15-puzzle.git
cd 15-puzzle
make
./15-puzzle
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 |
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.