Sliding Puzzle

Generating...

🕒 Time: 00:00
👣 Steps: 0
Invite friends to play:

What is Sliding Puzzle?

Sliding Puzzle (also known as the "Sliding Tile Puzzle" or "15 Puzzle") is a classic intellectual game that challenges logical reasoning. Players need to move tiles within a fixed grid to arrange them in numerical order, ultimately creating a complete sequence from 1 to N. This game helps enhance logical thinking, spatial imagination, and concentration, making it suitable for players of all ages.

Supported Grid Modes:

How to Play Sliding Puzzle?

Basic Rules

  1. Start the Game: Click the "New Game" button, and the system will randomly shuffle the tiles.
  2. Move the Tiles: Click a tile or use the keyboard arrow keys to move it into the empty space.
  3. Arrange the Order: The goal is to arrange the tiles in ascending order (1 → 2 → 3 → …), leaving one blank space in the bottom-right corner.
  4. Time Tracking: The game will automatically record your time and steps, allowing you to challenge yourself to achieve the best solution time!

Advanced Features

Quick Tips for Solving Sliding Puzzle

To solve the puzzle quickly, using the right strategies is key! Unlike the traditional "solve row by row" method, the "row and column cross" strategy allows you to reduce the problem's size step-by-step, avoiding unnecessary moves and speeding up the solving process!

Step 1: Solve the First Row

Once the first row is fixed, it won't be disturbed anymore, reducing the puzzle size to an (N-1)×(N) puzzle.

Step 2: Solve the First Column

The first column is essentially an arithmetic sequence, where the values of each cell follow this formula:

Row n, Column 1 = (n-1) × Grid size + 1

Once these two steps are completed, the puzzle size reduces further to an (N-1)×(N-1) puzzle.

Step 3: Reduce the Puzzle and Continue with the Row and Column Cross Strategy

Now, the remaining part is a smaller puzzle (e.g., a 4×4 becomes a 3×3). Continue solving it with the row and column cross method:

  1. First, solve the second row (ensure the correct order).
  2. Then solve the second column (keep the arithmetic sequence intact).
  3. Continue reducing the grid until you're left with the last 2×2 block.

This method minimizes steps and avoids unnecessary moves!

Step 4: Handle the Last 2×2 Tiles

When only two numbers remain to be swapped, don't just force them into place. Instead, use the "Z-rotation" strategy:

Advanced Techniques

Frequently Asked Questions