Math & theory

Everything we know about slide puzzles, organised by what you want to do — play a particular size, solve one, turn a photo into one, or read the maths behind why some boards are impossible.

Articles Game modes Solver & solutions Custom & photo puzzles Who it is for Math & theory
15 Puzzle Algorithm — From BFS to Pattern Databases

A history of 15-puzzle solving algorithms: BFS, A* with Manhattan distance, IDA*, walking distance, and additive pattern databases.

Why Some 15 Puzzles Cannot Be Solved — The Parity Rule

The 15 puzzle parity theorem: check if a board is solvable by counting inversions plus the blank's row. Clean proof and the Sam Loyd story.

Manhattan Distance Heuristic — Why It Works

How the Manhattan distance heuristic works, why it is admissible and consistent, and where it falls short for slide-puzzle solving.

Sliding Puzzle Strategy — The Techniques That Scale

The four techniques that solve any sliding tile puzzle by hand: row-and-column reduction, the L-shaped corner manoeuvre, empty-cell routing, endgame.

Why Some 15 Puzzles Are Unsolvable — A Plain-Language Check

How to check if a 15 puzzle is solvable, in plain language: count inversions, add the blank's row, check parity. What to do if you get a bad board.