ASI AppsWrite

Games and exercises

PsyGames

Sixteen: logic puzzle rules

Sixteen puzzle rules: shift whole rows and columns that wrap around the edge, and put the numbered tiles back in order. Worked example and strategy tips.

What is Sixteen?

Sixteen is a sliding-tile puzzle with a twist: there is no hole. Every square of the grid holds a numbered tile, and your move is to shift an entire row or column, with the tiles that fall off one end coming back in at the other. It looks like the famous 15-puzzle, but plays in a very different way. The Sixteen puzzle is part of Simon Tatham’s Portable Puzzle Collection (MIT licence), and PsyGames shows it under the same name. The collection’s author says he may have invented it, though only by accident, while trying to imitate a screensaver he had seen.

This page covers the rules of the Sixteen puzzle, how to play Sixteen in the app, a worked example and the strategy that finishes a board without undoing your own work.

The goal and the rules

You get a square grid filled with numbered tiles in scrambled order. The classic version has 16 squares, a 4×4 grid, matching the name. In the Sixteen puzzle the goal is to arrange the tiles in numerical order: 1, 2, 3, 4 on the top row, then 5 to 8, then 9 to 12, with 13, 14, 15 and 16 on the bottom row.

There is one kind of move. Choose any row or any column and shift it by one step. Each tile moves one place in the chosen direction, and the tile that leaves the grid re-appears in the space just vacated at the opposite end of the same line. Nothing is ever lost, and no tile leaves its row or column during a single move. Once the 4×4 grid feels easy, the original collection suggests trying other grid sizes.

How to play Sixteen in PsyGames

Tap an arrow at the edge of the grid. That row or column wraps around in the direction of the arrow, and the tile pushed over the edge comes back on the other side. Every move starts from an arrow on the border. The original collection also lets keyboard players move the tile under the cursor directly, but the app’s description does not mention that.

Moves are undone by moving the same line the other way. A shift to the right followed by a shift to the left returns the board to exactly the same position, so experimenting is safe.

A worked example

Suppose the top row reads 2, 3, 4, 1 and you want it to read 1, 2, 3, 4. Shift that row one step to the right. The tiles 2, 3 and 4 each move one square to the right, and the 1, which was in the last square, wraps round and re-appears in the first. The row now reads 1, 2, 3, 4. Because only that row moved, no other row changed at all.

Now suppose a single tile is in the wrong row. A row shift cannot help, since it never changes the row of a tile; only a column shift does. That is the central idea of Sixteen: rows change columns, columns change rows. To fix a stray tile, bring it into the right column with a row shift, then raise or lower that column to put it in the right row.

Solving tips and common mistakes

  1. Solve one line at a time. Finish the top row, then work on the rest. Moving a row never disturbs a different row, so a finished row stays intact until you shift a column.
  2. Plan with columns. Once the top row is done, every column move disturbs it. If you shift a column, shift it back after you have moved the tile you wanted, or plan the pair of moves in advance.
  3. Use the undo-and-redo trick. Shift a row, then a column that crosses it, then undo the row, then undo the column. Most tiles end up where they began, and only three change places. It is a handy way to repair a nearly finished board, though the three tiles that change places can include one from a row you had finished.
  4. Think in cycles. A line of four tiles returns to its start after four shifts in the same direction, so three shifts one way equal one shift the other.
  5. Do not hunt for a missing gap. A beginner used to Fifteen looks for the empty square. There is none; the moving line plays its part.
  6. Think of the grid as a loop. The rightmost column is a neighbour of the leftmost, and the top row is a neighbour of the bottom row. Short routes often cross the edge.

The classic mistake is to hurry the last few tiles. If only three are out of place, the undo-and-redo trick is worth trying before you scramble the rest of the board.

How Sixteen differs from similar puzzles

  • Fifteen has the same kind of numbered tiles but includes a gap, and you slide one tile at a time into it.
  • Twiddle turns a small square block instead of shifting a whole line.
  • Sliding Pipes uses the same wrapping row movement, but the pieces are pipes that need to be joined into one network.
  • Klotski slides large blocks through a crowded box.

If you can already play Sixteen, Sliding Pipes will feel familiar in its moves.

Sixteen in PsyGames

The app describes the puzzle in a line: tap an arrow at the edge, that row or column wraps around, and you put the numbers in order. It is listed under Space. The full list of puzzles and other games is on the all games page.

Frequently asked questions

Is there an empty space in Sixteen?

No. In the classic 4×4 version all 16 squares hold numbered tiles. Instead of sliding into a gap, a whole row or column moves, and the tile pushed off one end re-appears at the other end of the same line.

How do I move a row or a column?

Tap an arrow at the edge of the grid. The row or column that the arrow points along wraps around by one step in the direction of the arrow.

What does the solved Sixteen board look like?

In the classic game the numbers run in order from left to right and top to bottom: 1, 2, 3, 4 on the top row and 13, 14, 15, 16 on the bottom row.

Is Sixteen the same as the 15-puzzle?

No. The 15-puzzle (Fifteen) has a gap and moves one tile at a time. Sixteen has no gap and moves complete lines. Both are in PsyGames.

More logic puzzles

All games

PsyGames: Brain Training

Learn more: PsyGames