# 15 Puzzle

## Sliding puzzle with fifteen pieces and one space / From Wikipedia, the free encyclopedia

#### Dear Wikiwand AI, let's keep it short by simply answering these key questions:

Can you list the top facts and stats about 15 puzzle?

Summarize this article for a 10 years old

The **15 Puzzle** (also called **Gem Puzzle**, **Boss Puzzle**, **Game of Fifteen**, **Mystic Square** and many others) is a sliding puzzle which has 15 square tiles numbered 1 to 15 in a frame that is 4 tile positions high and 4 positions wide, with one unoccupied 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 (from left to right, top to bottom).

Named after the number of tiles in the frame, the 15 Puzzle may also be called a *"16 Puzzle"*, alluding to its total tile capacity. Similar names are used for different sized variants of the 15 Puzzle, such as the **8 Puzzle,** which has 8 tiles in a 3×3 frame.

The *n* Puzzle is a classical problem for modelling algorithms involving heuristics. Commonly used heuristics for this problem include counting the number of misplaced tiles and finding the sum of the taxicab distances between each block and its position in the goal configuration.[1] Note that both are *admissible*. That is, they never overestimate the number of moves left, which ensures optimality for certain search algorithms such as A*.[1]