PK
Puzzle PK
Brain Games & Logic Arena
Sliding Puzzle Strategy: How to Solve Any 4x4, 5x5 or 6x6 Board
Sliding Puzzle Strategy Logic Puzzle 🔲Sliding Puzzle

Sliding Puzzle Strategy: How to Solve Any 4x4, 5x5 or 6x6 Board

Master the sliding puzzle: row-by-row method, corner and two-row techniques, parity check, and Speed PK tips. Solve any 4x4, 5x5, or 6x6 board every time.

PK
Puzzle PK Team
2026-08-26 10 min read

The sliding puzzle — 数字华容道 in Chinese, the famous "15 puzzle" in its 4x4 form — is one of the oldest and most addictive logic puzzles ever invented. A square tray holds numbered tiles and one empty space; tiles slide into it, and the goal sounds simple: arrange the numbers 1, 2, 3 … N in order, row by row, left to right.

Simple to state, not so simple to do. Most people solve the first few tiles, hit a wall, and call the puzzle impossible. It isn't. A sliding puzzle tests method, not memory or luck — a fixed, repeatable procedure solves every board at every size. Learn it once, and any 4x4, 5x5 or 6x6 board on Puzzle PK is yours — Speed PK wins included.

Why the Sliding Puzzle Is a Great Brain Workout

  • Spatial reasoning. Rehearsing move sequences in your head is pure spatial-visualization practice.
  • Sequential planning. Row-by-row solving turns chaos into a chain of small, verifiable goals — the same skill used in chess and programming.
  • Working memory. Tracking tiles, targets, and the empty space's path trains short-term memory, which measurably improves with practice.
  • Patience under pressure. A scrambled board never requires luck, only persistence — and Speed PK mode makes the training addictive.

How to Play: 4x4, 5x5 and 6x6

On Puzzle PK, the Sliding Puzzle comes in three board sizes:

Board size Numbered tiles Empty cells
4x4 15 1
5x5 24 1
6x6 35 1

The rules — identical at every size:

  • The board is a square grid of numbered tiles with exactly one empty cell; only tiles directly adjacent (up, down, left, right) can slide into it.
  • Goal: order the numbers 1 to N row by row, left to right, top to bottom.

Two ways to play on Puzzle PK:

  • Single mode — practice at your own pace and race your personal best time.
  • Speed PK mode — real-time multiplayer with the same scramble for both players; first to solve wins. Identical starts make it a pure test of technique and speed — no luck.

Puzzle PK always generates solvable boards, so a lost game is never the game's fault — but solvability is still a powerful strategic tool, as you'll see.

The Core Strategy: The Row-by-Row Method

Every serious solver follows the same big picture: never solve the board as a whole — solve it one row at a time, from the top down, and never touch a solved row again. The method rests on one crucial principle: a solved row is a locked row. Once tiles 1, 2, 3, 4 sit in their homes, you can move freely in the rows below without disturbing them, because you only move tiles through the unsolved area.

Step 1: Solve the top row, left to right

We'll use 4x4 as the running example; larger boards work identically with longer rows.

Placing tile 1 (top-left corner):

  1. Find tile 1.
  2. Chase it with the empty space — put the empty cell beside it in the direction you want it to go, then slide — until it reaches the top-left corner.
  3. Never move it again.

Placing tiles 2 and 3: repeat the chase, settling them at (1,2) and (1,3).

Placing tile 4 — the corner technique. The last tile of a row trips up almost every beginner, because sliding it home requires the empty space to enter a row that is already full. The trick is to attack from below:

  1. With tiles 1–3 locked, move tile 4 to the cell directly below its home — (2,4) on a 4x4.
  2. Move the empty space into the top-right corner (1,4).
  3. Slide tile 4 up; the row is locked.

Why this always works: with tiles 1–3 home, the five cells around the corner — (1,4), (2,3), (2,4), (3,3), (3,4) — form a closed loop you can rotate without touching the locked row. Tile 4 rides the loop under the corner, the empty space rotates into the corner, and one slide finishes the row.

Concrete example: tiles 1–3 locked, tile 4 at (3,4), empty at (4,4). Rotate the five-cell loop until tile 4 reaches (2,4) and the empty space reaches (1,4) — then one upward slide puts tile 4 home.

Step 2: Solve the middle rows — but stop at the last two

Repeat for the second row (5–8 on 4x4, corner technique for tile 8) and the third row (9–12). Do not lock the second-to-last row completely — if you do, the final row can become unsolvable (see parity below). On 5x5, solve rows 1–3 normally (1–5, 6–10, 11–15); on 6x6, rows 1–4 (1–6, 7–12, 13–18, 19–24).

Step 3: The last two rows — the two-row technique

The final two rows must be solved together, as vertical pairs, left to right. On 4x4 the pairs are (9,13), (10,14), (11,15); the last two cells (12 and the empty space) fall into place automatically.

For each pair — top tile a at (r−1, c), bottom tile b at (r, c):

  1. Bring a to its home (r−1, c) — the unsolved strip gives you room to maneuver.
  2. Park b in the cell directly right of its home, (r, c+1).
  3. Bring the empty space to (r, c) — directly below a.
  4. Slide b left. Both are home. Lock them and move to the next pair.

Concrete example (4x4): for 9 and 13 at (3,1)/(4,1): slide 9 to (3,1); park 13 at (4,2); empty space to (4,1); slide 13 left. Locked. Repeat for 10/14, then 11/15. On 5x5 the pairs are (16,21), (17,22), (18,23), (19,24); on 6x6, (31,37), (32,38), (33,39), (34,40), (35,41).

Why this works: one continuous unsolved strip keeps the maneuvering room the method depends on — there is always space to position the next pair.

Advanced Technique 1: The Parity Check

Surprising fact: not every arrangement of tiles is solvable. On any even-sized board (4x4, 6x6), exactly half of all arrangements can never be reached by legal slides — the famous "unsolvable" 15 puzzle, with 14 and 15 swapped and the empty space bottom-right, is exactly that.

How to check any position (about 2 minutes):

  1. Read the tiles in reading order — left to right, top to bottom — ignoring the empty space.
  2. Count the inversions: pairs where a larger number appears before a smaller one.
  3. Compare parities:
    • 5x5 (odd width): solvable if and only if the inversion count is even.
    • 4x4 and 6x6 (even width): solvable if and only if the inversion count and the empty space's row (from the top) have the same parity — both even or both odd.

Why this matters:

  • If a hand-scrambled board fails the check, it is mathematically impossible — re-scramble instead of fighting math.
  • The classic trap: only the last two tiles swapped. If you see it, you made an earlier error — restore the last locked row and redo it; don't burn fifty moves on the unfixable. (Curiously, the same swap is solvable when the empty space sits in an odd row — the row decides.)
  • Puzzle PK generates solvable boards, so you mostly use parity to avoid creating impossible positions — the most common cause being the "solve the last two rows one at a time" mistake.

Advanced Technique 2: Move Counting and the Empty-Space Route

Think of the empty space as your cursor. Tiles don't move themselves — the empty space travels, and every tile that slides is one the cursor "passed through." This reframing pays off twice:

  • Plan the empty space's route, not the tile's. Don't push a tile directly; route the cursor around it so the tile slides into position as a side effect. Advanced solvers think in loops: the empty space orbits a small region and tiles shift one step along the orbit.
  • Count moves. The theoretical minimum is the sum of every tile's Manhattan distance to home (|Δrow| + |Δcol|) plus a few for the cursor; row-by-row runs about 1.5–2× that, which is fine. Counting becomes a racing tool in Speed PK: if your opponent is a row ahead, take shortcuts — solve pairs in one pass, never move a tile twice, never "fix" a home tile.

Three efficiency habits:

  1. Never move a locked tile — even one move costs two (out and back).
  2. Finish what you start: complete a nearly-home tile before the next; half-done tiles waste moves.
  3. In Speed PK, a smooth solve beats a sloppy fast one: one big mistake costs more than ten perfect moves.

Common Mistakes and How to Avoid Them

  1. Locking rows too early in the bottom half. On 4x4, locking row 3 completely can make row 4 unsolvable. Fix: always use the two-row technique for the final two rows.
  2. Moving a solved tile "just a little." One tile out of place needs at least two moves to restore, usually more. Discipline: a locked tile is never touched.
  3. Sliding without a route. Random sliding scrambles faster than it solves. Before every move ask: where is the empty space going, and what does this tile need next?
  4. Panicking at the last two rows. The final strip looks chaotic but is the most rule-bound part — just pairs marching left. Slow down and follow the four-step routine.
  5. Ignoring parity. If a scramble seems impossible, run the parity check first.
  6. Mis-clicks under time pressure. In Speed PK, accuracy beats speed: one misplaced tile can cost ten moves. Train with timed Single-mode solves before racing.

Practice Tips: From Beginner to Speed Runner

  1. Start at 4x4. Master the top row, then the two-row technique, then solve whole boards without the guide. Consistency first, speed second.
  2. Drill the corner technique in isolation. Scramble, solve only the top row, scramble again — repeat ten times. This skill transfers to every row of every board size.
  3. Move up in size. 5x5 is the same method with longer rows; 6x6 is a genuine endurance test and a great party trick.
  4. Time yourself. Once 4x4 is consistent, start a timer. Expect chaos at first; times fall fast — 10+ minutes to under a minute is typical.
  5. Learn to read the board. Spend three seconds locating tiles 1, 2, 3 and the empty space before touching anything; the fastest solvers "see" the first row before they move.
  6. Race in Speed PK. Nothing sharpens speed like real competition; identical boards make every win and loss a fair measure of technique.

Why Play the Sliding Puzzle Online at Puzzle PK

  • Zero setup. No tiles to buy, no hand shuffling — every game is a fresh, guaranteed-solvable scramble in one click.
  • Three difficulty levels. 4x4 for beginners, 5x5 for intermediates, 6x6 for experts.
  • Real-time Speed PK multiplayer. Same board, two players, one winner — solo puzzling turned competitive sport, and the fastest way to sharpen solving speed.
  • Tracked personal bests. Your best times are recorded, so every session has a concrete target to beat.
  • Brain training that's actually fun. You're not grinding — you're solving.

The Bottom Line

The sliding puzzle looks like a chaotic game of chance and memory. It isn't. Solve the top row left to right and keep it locked; solve the middle rows the same way; then march the last two rows home as vertical pairs. Respect the parity rule, plan the empty space's route, and never touch a solved tile. That's the whole method — and it works on every 4x4, 5x5 and 6x6 board, every single time.

Now scramble one at Puzzle PK and watch the numbers fall into place.

🔲
🎯Interactive Arena

Sliding Puzzle

Put what you've learned into immediate practice! Hone your skills in solo mode or challenge online players in real-time PK.

PK

Puzzle PK Team

The Puzzle PK Team is a group of puzzle enthusiasts crafting free, high-quality logic games and brain-training guides for players of all ages. Got feedback or ideas? We would love to hear from you.

More about Puzzle PK →
📱

Add to Home Screen for Quick Access

Enjoy native fullscreen & offline instant play