Sliding 15-Puzzle

The 15-puzzle and its smaller version, the 8-puzzle are classic sliding puzzles, consisting of numbered square tiles which can be slid in a frame using an empty slot. The object is to slide all tiles where they belong using the empty space. The solved state can be marked with numbers or an image. One possible solution of the numbered verion is shown on the image supplied.

15 puzzles
Numbers, letters and images marking the solved state

You can try to solve this puzzle clicking the button below. The simulator allows you to set up your own image and send the link to your friends to challenge them to solve the puzzle with your image. Just set the link (url) of any image or use a Facebook profile or page id.

Create a 15-Puzzle with your own image!

How to solve the 15-Puzzle

1 2 4
    3  
       
       
Solving the two last
pieces of a layer.

The solution of a 15-Puzzle is not so hard, it can easily be done intuitively. You only need to know a little trick when you reach the last two pieces of a layer.

Let's say we have a 4x4 puzzle and we want to solve it starting with the tile marked with 1 in the upper left corner. Placing the first two pieces can't be a challenge, but you might need a little trick when you reach the last two pieces of the layer. Instead of positioning tile nr 3, then nr 4 we are going to solve these two together. Place 4 where 3 should be, 3 below it and move the empty slot next to 4. After that slide 4 to the right and move 3 up to the empty space as shown on the image. You can solve the second layer the same way.

1 2 3 4
5 6 7 8
13 9    
       
The last two layers are
solved together from left.

When you reach the last two layers we need to use the same trick to solve the two tiles on the left corner: 9 and 13. After that comes the positioning of tiles nr 10 and 14 and you just have to rotate the remaining 3 tiles at the end to finish the puzzle.

This solution method takes about 70 steps to solve a 4x4 puzzle from any random starting position. The same idea can be applied for the 8-puzzle too.

Solved 15-puzzle
Solved 15-puzzle
YC Lim
133 moves
Teo Yi Tao
I got 124 moves
Fahim Steinum
Is there any advanced method?
Nyssapaulyne Cuares
Yes, but unlike twisty puzzles they are based on search algorithms and heuristics rather than fixed move sequences / algorithms. Optimal solvers use techniques such as A* or IDA* search combined with heuristics, linear conflict, and pattern databases, which allow computers to find the shortest solution🤯.
For humans, the most advanced practical approach is still a refined row-by-row solving strategy with careful control of previously solved tiles, but there is no true algorithm set that guarantees optimal solutions.
Daylon Moores
Pro use a fast row-by-row method, not an optimal one. They build the top rows first, watch out for solved tiles while placing new ones, and finish the last two rows with parity handling.
Finger efficiency, planning ahead, and avoiding unnecessary moves, rather than finding the shortest possible solution.
Binu Biju
me 30
Teo Yi Tao
liar
Tyler Anderson
derp
Tyler Anderson
well i solved it in 555 moves
Jacquelin Cruz
Me 320
DGabriel CVitug
Jacquelin Simpkins me at 200
River Cole
dats noob
Dave V Anida
so hard
Alessandra Giordmaina
Me 24
Maely Amorim
FINALY DID THIS SO HARD, thanks for the tips
Lihui Huang
150moves
Benz Josef Delos Santos
First time:more than 300
Benz Josef Delos Santos
Second time:more than 200
Benz Josef Delos Santos
I solved it within 50 moves exactly. I got a lucky scramble,That's why it happened
Dauletkhan Zarina
я собрал
Marsha Renée
We grew up with these. Just had to keep playing to figure it out
Mao Chitong Relator
10000000000 MOVES DID IT IN 3 DAYS