ASI AppsWrite

Games and exercises

PsyGames

Fifteen: logic puzzle rules

Fifteen puzzle rules: slide numbered tiles into the empty space until they run 1 to 15. Worked example, row-by-row strategy and common mistakes to avoid.

What is Fifteen?

Fifteen is the old sliding-tile classic, usually called the 15-puzzle. A square frame holds numbered tiles with one empty space, you slide tiles into the space one at a time, and the aim is to restore the numbers to order. The puzzle dates from the 1870s according to the documentation of Simon Tatham’s Portable Puzzle Collection (MIT licence), on which this puzzle in PsyGames is based. It rewards thinking several moves ahead, because every slide changes which tiles can move next.

This page explains the rules of the Fifteen puzzle, how to play Fifteen in the app, and the row-by-row method most players use to finish a board.

The goal and the rules

The classic board is a 4×4 grid. That makes 16 squares, of which 15 hold numbered tiles and the sixteenth is empty. Your move is to choose a tile next to the empty space and slide it into the space. That is all: tiles never jump, never swap and never leave the grid.

The aim is to end with the tiles in numerical order and the space in the bottom right corner. The top row reads 1, 2, 3, 4, the second row 5 to 8, the third 9 to 12, and the bottom row 13, 14, 15 followed by the empty square. In the Fifteen puzzle the order matters, not the speed, though counting your moves is a good way to compare attempts.

How to play Fifteen in PsyGames

You can tap a tile next to the gap to slide it in, or use the arrows. Only a tile touching the empty space can move, so at any moment you have at most four choices, and often two or three. Each move shifts the gap one square, so another way to think of it is that you are walking the gap around the board and every step drags one tile behind it.

A worked example

Look at the end of a game. Rows one to three are finished: 1 to 12 in order. The bottom row reads 13, 14, then the gap, then 15. The gap is the third square, and the 15 sits to its right. Tap the 15 and it slides left into the gap. The bottom row now reads 13, 14, 15 with the empty square in the corner, so the board is solved.

A more typical position is the one where two tiles from a row are stuck. Suppose the top row reads 1, 2, 4 with the gap in the corner, and the 3 is directly beneath the 4. Slide the 4 right into the corner, then slide the 3 up into the space it left. The row reads 1, 2, 3, 4. This tiny pattern, with the last two tiles of a row arranged in a 2×2 corner, is the key step of the standard method.

Solving tips and common mistakes

  1. Solve row by row. Complete the top row, then the second row. Once two rows are done, work on the remaining two-row strip.
  2. Place the last two tiles of a row together. Do not put the third tile of a row in its place and then try the fourth: the fourth is then hard to bring in without knocking the third loose. Instead, put the fourth tile in the third square, the third tile beneath it, and finish with the pair of slides shown above.
  3. Then work columns. For the final two rows, finish the leftmost column first, then the next, moving left to right. Thinking of the strip as columns leaves the fewest tiles to disturb.
  4. Finish the last 2×2 by turning it. The remaining four squares contain three tiles and the gap. Rotate them around the gap until they are in order.
  5. Keep moving the gap in loops. Walking the gap around a 2×2 group rotates three tiles in a cycle without disturbing the rest of the board.
  6. Do not disturb finished tiles needlessly. If a route breaks the first row, plan how you will restore it before you start.

One fact is worth knowing: on the classic puzzle, only half of all arrangements can be solved by sliding. That is why swapping two tiles on a physical puzzle can leave it impossible.

How Fifteen differs from similar puzzles

  • Sixteen has no gap at all. Its move shifts a complete row or column around the edge.
  • Twiddle rotates square blocks of tiles instead of sliding single tiles.
  • Klotski slides blocks of different shapes through a box, and the goal is to bring one particular block to an exit.
  • Sokoban is another puzzle where each move has consequences far down the line, but it moves barrels around a room.

What sets the Fifteen puzzle apart is the single gap. All of the planning is about where the gap goes next.

Fifteen in PsyGames

The app puts the puzzle in one line: tap a tile next to the gap, or use the arrows, and restore the order. It is listed under Space. Find other puzzles on the all games page.

Frequently asked questions

What is the goal of the Fifteen puzzle?

To slide the tiles until the numbers 1 to 15 are in order, with the empty space in the bottom right corner. The top row then reads 1, 2, 3, 4 and the bottom row reads 13, 14, 15 and the gap.

How do I move a tile in PsyGames?

Tap a tile that is next to the gap, or use the arrows. A tile can only move into the empty space, so only the tiles touching it are movable.

How many tiles are there in Fifteen?

In the classic game there are 15 numbered tiles on a 4×4 grid, which has 16 squares, and the sixteenth square is empty.

Can every arrangement of the 15-puzzle be solved?

No. A well-known result about the classic puzzle is that only half of all possible arrangements can be reached by sliding, which is why swapping two tiles on a physical puzzle can make it impossible.

More logic puzzles

All games

PsyGames: Brain Training

Learn more: PsyGames