Lesson 2 of 4 · Core

Avoid dead ends

The guide and all zip lessons

The path enters a cell from one side and leaves by another. So every empty cell needs two open sides: one to come in, one to go out. Only the cell with the last number can do with one.

A side is open when the cell beyond it is empty, or holds the end of the path, and no wall is in the way.

When a move would leave a cell with a single open side, that cell becomes a dead end: the path could enter it and never leave. Corners are where this happens first, because they start with only two.

Example 1: The 2 is next door, but the corner comes first

Step 1 of 3

The corner has two open sides: right, and down to the path's end.

The path has run up the left edge and the 2 is one step to the right. The corner above is still empty.

Count the corner's open sides: the cell to its right, and the path's end below it. Step right onto the 2 and the path's end moves away, leaving the corner one open side. Take the corner now instead. The path reaches the 2 two moves later, with nothing left behind.

Example 2: A pocket on the edge

Step 1 of 3

Two open sides: the 3 to the right, and the path's end below.

Dead ends are not only corners. The ringed cell on the top edge has the path on its left, so it has two open sides: the 3 on its right, and the path's end below.

If the path steps right instead, the ringed cell can only be reached from the 3, and then there is nowhere to go. Going up first uses the pocket on the way to the 3.

Try it yourself

Try the reasoning yourself. Choose an answer to see the explanation.

The path is on the 2. Draw one step into a ringed cell. Which one keeps the corner alive?

Use arrow keys to draw and Backspace to undo.

Drag from the path's end, or use the arrow keys.

How to spot it faster

  • Check the four corners first. Each has two open sides from the start, so the path must pass straight through it.
  • After every move, look at the cells beside the path's end. An empty one with a single open side has to be taken now.
  • A wall counts as a closed side. A cell on the edge with a wall beside it is as tight as a corner.

Common mistakes

Heading straight for the next number

The next number is where the path must arrive, and the cells on the way still have to be filled. The shortest route often strands one.

Counting the path's body as open

Only the path's end can step into a cell. A cell beside the middle of the path gets no open side from it.

Questions

Try it

On your next board, check each corner before you draw and decide which way the path will pass through it.

Play solo Zip