Solving EdgeNums step by step

This tutorial solves one 5×5 puzzle move by move. Every step shows the grid as it stands and explains why exactly that cell is next.

The rules in three sentences

  1. Every row and every column contains each number from 1 to 4 exactly once, plus one empty cell.
  2. The edge number is the first number visible from that side. It sits in the first or second cell, and only the empty cell may come before it.
  3. Every puzzle has exactly one solution, and you find it without guessing.

The puzzle

We start with an empty 5×5 grid. The numbers on the outside are the edge numbers; a side without a number gives no clue. Wanted are the numbers 1 to 4 plus one empty cell per row and column.

Starting position with the edge numbers 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4

The solution move by move

Step 1: row 2, column 1 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 3
Step 1

Edge number (left) into the first cell

Edge number left, row 2: 3. The 3 belongs in the 1st or 2nd cell; column 2 is ruled out (edge number 3 below column 2 requires 3 to be in the 1st or 2nd cell from the bottom), so the highlighted cell remains.

Almost every puzzle starts like this: two edge numbers together rule out a cell.

Step 2: row 5, column 2 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 3 3
Step 2

Edge number (left) into the second cell

Edge number left, row 5: 3. The 3 belongs in the 1st or 2nd cell; column 1 is ruled out (3 is already present in column 1), so the highlighted cell remains.

Step 3: row 1, column 1 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 3
Step 3

Edge number (top) into the first cell

Edge number top, column 1: 2. The 2 belongs in row 1 or 2; row 2 is ruled out (it is already occupied), so the highlighted cell remains.

Step 4: row 2, column 2 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 3
Step 4

Edge number (top) into the second cell

Edge number top, column 2: 2. The 2 belongs in row 1 or 2; row 1 is ruled out (2 is already present in row 1), so the highlighted cell remains.

Step 5: row 5, column 3 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 3 1
Step 5

Edge number (bottom) into the last cell

Edge number bottom, column 3: 1. The 1 belongs in row 4 or 5; row 4 is ruled out (edge number 1 left of row 4 requires 1 to be in the 1st or 2nd cell from the left), so the highlighted cell remains.

Step 6: row 4, column 1 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 1 3 1
Step 6

Edge number (bottom) into the second-to-last cell

Edge number bottom, column 1: 1. The 1 belongs in row 4 or 5; row 5 is ruled out (1 is already present in row 5), so the highlighted cell remains.

Step 7: row 5, column 1 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 1 3 1
Step 7

Edge number (left) forces an empty cell

Edge number left, row 5: 3. The 3 is already in column 2. All cells before it must be empty, including the highlighted one.

That locates the empty cell without a single number being involved.

Step 8: row 3, column 1 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 4 1 3 1
Step 8

Column almost complete

In column 1 only the highlighted cell is still free. That is where the 4 belongs.

Step 9: row 5, column 5 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 4 1 3 1 4
Step 9

Edge number (right): first cell

Edge number right, row 5: 4. The empty cell lies further left, so the 4 goes directly in the highlighted cell.

Step 10: row 5, column 4 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 4 1 3 1 2 4
Step 10

Row almost complete

In row 5 only the highlighted cell is still free. That is where the 2 belongs.

Step 11: row 1, column 2 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 4 1 3 1 2 4
Step 11

Edge number (top) forces an empty cell

Edge number top, column 2: 2. The 2 is already in row 2. All cells above it must be empty, including the highlighted one.

Step 12: row 1, column 5 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 3 2 4 1 3 1 2 4
Step 12

Edge number (right): first cell

Edge number right, row 1: 3. The empty cell lies further left, so the 3 goes directly in the highlighted cell.

From here the puzzle almost fills itself in.

The rest

After these twelve moves the remaining 13 cells are routine: every row and column is missing only one or two values, and those follow from what is already there. This is what the finished solution looks like.

The complete solution 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 4 1 3 3 2 4 1 4 1 2 3 1 4 3 2 3 1 2 4

▶ Play it yourself

Free in your browser, no installation needed.

The techniques at a glance

These patterns come back in every puzzle, in larger grids up to 8×8 as well. The complete list of techniques is in the app under Rules.

Edge number 3: only the first two cells are possible 3

Edge number into the first or second cell

At most the empty cell may come before the edge number, because any number in front of it would itself be the first one visible. Two cells per edge number, never more choice than that. This is the lever for almost every move.

Edge number 3 in the second cell, the empty cell in front of it 3 3

If the edge number sits in the second cell, the first one is empty

The reverse of the basic rule. As soon as it is clear that the edge number is not on the outside, the outer cell is that row's empty cell.

The 3 sits in the second cell, the first one must be the empty cell 3 3

Edge number forces an empty cell

If you find the edge number somewhere else in the row, everything between the edge and that number must be empty. Since there is only one empty cell per row, its position is then fixed.

Edge number on the left and below narrow down the same cell 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4

Two edge numbers cross

A row and a column claim the same cell. If only one of the two demands can hold, the cell is blocked for the other number. The first move above comes about exactly like this.

Only one cell in the row is left for the missing number 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 3 2 4 3 1 3 1 2 4

Only position in the row or column

One number is still missing, and in the whole row exactly one cell is left where it can go: everywhere else it is already in the column. In the example the 1 belongs in the highlighted cell of row 1.

Four cells of the row are set, the last one follows 2 1 2 3 2 3 3 1 1 3 1 2 1 4 3 4 2 3 2 4 1 3 1 4

Row or column almost complete

With four of five cells filled, the last one follows from what is left. After every move it pays to check which row or column has just been completed. In row 5 only the 2 is missing.