Lesson 3 of 4 · Core

Keep the empty cells connected

The guide and all zip lessons

One path has to fill every empty cell, so the empty cells must stay in one connected group. If the path cuts them into two groups, it can fill one and never reach the other.

This happens when the path touches the edge of the board, or its own body, with empty cells on both sides. The path becomes a fence.

Before a step that reaches an edge or brushes the path, look at both sides of where the fence would be.

Example 1: One step to the edge seals six cells off

Step 1 of 3

Six empty cells above the path's end, joined to the rest only along the right edge.

The path's end is one step from the right edge. Six empty cells sit above it in the top-right corner, and many more lie below and to the left.

Step right and the path touches the edge: the six cells above are fenced off from everything else. The path could go up and fill them, but it would finish there with the rest of the board empty. Going up first fills that block and comes back down the edge.

Example 2: The same fence at the bottom edge

Step 1 of 3

Six empty cells to the left, nine to the right.

Here the path's end is one step above the bottom edge, with six empty cells to its left and nine to its right.

Stepping down would touch the edge between them. Turning left first sweeps the six cells, picks up the 5 in the corner, and returns along the bottom row to carry on to the right.

Try it yourself

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

Draw one step into a ringed cell. One of them touches the top edge and splits the empty cells in two.

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

  • Watch for the moment the path's end is one step from an edge or from its own body.
  • Count the empty cells on each side of that step. If both sides have some, the step is a fence.
  • Fill the side that leads back out first, as both examples do.

Common mistakes

Only checking for dead ends

A fenced-off group can look healthy: every cell in it may have two open sides. The trouble is that the path cannot get back out.

Forgetting the path's own body

Touching an earlier stretch of the path splits the board just as an edge does.

Questions

Try it

When your path nears an edge, stop and count the empty cells on each side before the last step.

Play solo Zip