Skip to content
Yunedia Tools

Puzzle Game

A sliding tile puzzle (3x3 to 5x5) with a move counter. Guaranteed solvable shuffles.

Moves: 0Time: 0sBest time: No completed time yet at this size.

Click a tile next to the empty space, or focus the board and use the arrow keys. Arrow keys slide a tile into the empty space in that direction.

How to use

  1. Pick a size (3×3, 4×4 or 5×5). Shuffles are made by sliding tiles from the solved state, so every puzzle is solvable.
  2. Click a tile next to the empty space to slide it in.
  3. Click the board to focus it, then the arrow keys work too.
  4. Order the numbers with the empty space back at the bottom right to finish; moves and time are recorded.

Notes

A fully random tile arrangement is unsolvable half of the time, so this game shuffles by making random legal moves from the solved state instead — every move is reversible, which guarantees a solution exists. Best times are stored per size in this browser's localStorage (key: yt-puzzlegame-best).

FAQ

The arrow keys feel reversed
An arrow key names the direction a tile slides: ArrowUp slides the tile below the empty space upward into it, and so on.