Skip to content
Thinking Games
EN
Planning

Clear the Way: how to solve a sliding block car puzzle

In a sliding block puzzle of this kind, a car is boxed in by blocks that can only slide along their own length, and you have to get it to the exit. Random shuffling works on small boards and fails on big ones. What works everywhere is reading the board backwards: start from the exit and ask what is in the way, and then what is in the way of that.

The rules, as the app states them

Slide the blocks aside and drive the red car out.

  1. Every block slides in a straight line only: blocks lying flat move left and right, blocks standing upright move up and down. Nothing can jump over or pass through another block.
  2. Drag a block, or tap it and use the arrows that appear at its ends. Sliding several squares in one go counts as a single move.
  3. You win when the red car touches the exit, the gap with the arrow on the right edge. There is no move limit: “Best” is just the fewest moves possible.

What this kind of puzzle is

Sliding block puzzles go back to the nineteenth century, when the craze was to put fifteen numbered squares in order inside a frame. The version with a car and an exit is much younger: the Japanese puzzle designer Nob Yoshigahara devised it in the 1970s, and it became a well-known boxed game in the 1990s.

The idea that sets it apart is that every piece runs on a rail. A block cannot turn or step sideways, so each one has very few possible moves. The difficulty comes from how the blocks hold each other in place: to move this one you first have to move that one, which is waiting for a third.

The rules in detail

Clear the Way is played on a square board. The red car lies flat in one row, and the exit is the gap with the arrow at the right end of that same row.

  • Blocks lying flat slide left and right. Blocks standing upright slide up and down.
  • No block can jump over another, pass through it or leave the board.
  • Blocks are two or three squares long. The red car is two.
  • Sliding a block several squares in one go counts as one move. Sliding it, stopping and sliding it again counts as two.
  • You win when the red car touches the exit.

There is no move limit. The Best figure next to your move count is the fewest moves the level can be solved in, there for comparison only. And since every slide can be undone by sliding back, you can never reach a position with no way out.

One detail of the app makes reading the board easier: the car's row never holds another flat block. Everything between the car and the exit is an upright block crossing the row, and it has to leave by going up or down.

Where to start: read from the exit backwards

Do not touch anything yet. Look along the car's row from the car to the exit and name the blocks that sit on it. Those are the blockers, and the puzzle is solved when none of them is on that row.

For each blocker, ask two questions. Which way could it leave the row, up or down? And what is stopping it? The answer to the second question is usually another block, and you ask the same two questions about that one. After two or three steps you reach a block that can move right now. That is your first move.

Four techniques

1. Follow the chain to a free block

This is the backward reading above, done properly. It works because the blocks that matter are only those on the chain from the exit. A block that is not stopping anything on the chain can be ignored.

2. Count the squares a block needs

To get off the car's row, an upright block must fit entirely above it or entirely below it. A two-square block needs two free squares on one side; a three-square block needs three. If the car is in the third row of a 6×6 board, there are only two squares above it, so a three-square blocker can never go up: it has to go all the way down, and the bottom three squares of its column must be emptied.

3. Slide far enough, and no further than helps

A block that moves one square when it needed two is still in the way, and now you have spent a move. Before sliding, decide where the block has to end up. Then check the opposite risk: that its new spot does not sit on a square another block on your chain will need.

4. Move the car when it is the obstacle

Sometimes the red car itself is sitting on a square that an upright block needs in order to cross the row. Sliding the car forward a little, or back, to let that block through is a normal move, not a step backwards.

A worked example

A 5×5 board. The red car is in row 3, in the two left-hand squares, and the exit is at the right end of row 3. Blocks A and D stand upright; B, C and E lie flat.

The two filled squares are the red car. The exit is at the right end of row 3.
BBB
A
AD
CCD
EE
  1. Blockers. Between the car and the exit, row 3 holds A (column 3) and D (column 5).
  2. A. It occupies rows 2 and 3. Going up would need the top square of column 3, and B is there. B is three squares long on a five-square row, so wherever it slides it still covers the middle column. A must go down, to rows 4 and 5. Row 5 is free; row 4 holds C.
  3. C. It cannot go right, because D is against it. It can go left. One square left would still leave it under A, so it needs two.
  4. D. It occupies rows 3 and 4. Below it is E, which would have to slide well to the left to make room: an extra move. Above it, rows 1 and 2 of column 5 are both free. D goes up.
  5. Play it. Slide C two squares left. Slide A two squares down. Slide D two squares up. Slide the red car three squares right, to the exit.

Four moves, which is the minimum for this board. Notice two things that were never moved: B and E. Sliding B right "to help" would have put it in D's way and cost extra moves.

Common mistakes

  • Starting with the car. Its run to the exit is the last move of the solution, not the first.
  • Stopping one square short. The block is still in the way and the move is gone.
  • Clearing one blocker into the path of the next. Plan where every blocker ends up before moving the first.
  • Forgetting that moves can be reversed. If a slide turned out wrong, slide it back or undo. You have not broken anything.

How the difficulty grows in the app

Clear the Way has 120 levels. The two tutorials are 5×5 boards solved in two and three moves: one blocker, then a blocker that is itself held in place. Easy levels use 5×5 and 6×6 boards with 5 to 10 blocks, counting the car, and a Best of 4 to 8 moves. Medium levels are all 6×6, with 8 to 13 blocks and a Best of 9 to 15. Hard levels are 6×6 with 10 to 14 blocks and a Best of 16 to 27: long chains where the same block has to move, make way and come back.

A hint gives you the next move of a shortest solution from where you are, with the reason: the highlighted block is in the car's way, or you first have to make room, or the car itself should move so other blocks can pass. It also tells you how many moves you still need at least.

If you like puzzles where the order of the moves is everything, try River Crossing, or see all the games in the collection.

Frequently asked questions

Is there a trick to sliding block car puzzles?

Work backwards from the exit. List the blocks on the car's row, find what stops each of them from leaving, and repeat until you reach a block that is free to move. That block is where you start.

Can you get stuck with no possible solution?

No. Every slide can be reversed, so from any position you can always return to the start and the level stays solvable. You can waste moves, but you cannot lock the board.

What counts as one move?

One slide of one block, however many squares it travels. In Clear the Way the Best figure is the minimum number of such slides, checked by a program for every level.

Can the blocks turn or move sideways?

No. A flat block only slides left and right, and an upright block only up and down, for the whole level. That restriction is what makes the puzzle.

More games in the collection