Step-by-step guide

How to solve Hidoku: the rules and 9 techniques

Hidoku is a grid in which the numbers from 1 to the last square form one chain: each number touches the next across, down or diagonally, and some of them are printed. You fill the gaps between printed numbers first, then count the steps the chain can take between them and cross out squares it cannot pass through.

  • 9 techniques, each on a real puzzle
  • 7 grids to solve on this page
  • How to count the steps
  • No sign-up

Making a puzzle book? Hidoku book generator

By Wisdom Effect · Updated

On this page

What is Hidoku?

Hidoku is a number puzzle about a single path. The numbers from 1 to the last square run through the grid in order, each one in a square next to the one before it, straight or on a diagonal. Some of them are printed, and you fill in the rest. There is no arithmetic and no row to complete: the only question is where the chain can go next. Also known as number snake or number chain, it is solved with the same handful of moves at every size.

Goal
Write the missing numbers so that 1, 2, 3 and on up to the last square form one chain, each number touching the next.
You need
A pencil, or the grids on this page.
Moves
One square across, down or diagonally from each number to the next, like a king in chess.
Sizes
5×5 to 10×10. Our books use 6×6 for Easy, 7×7 for Medium, 8×8 for Hard and 9×9 for Expert by default, and children’s books start at 4×4.
Origin
Israel, in the 2000s, by Gyora M. Benedek, a mathematician.
Other names
Number snake and number chain.
10
11
13
14
15
9
8
12
18
16
7
6
5
19
17
2
4
25
23
20
1
3
24
22
21
A solved Hidoku. The line runs from 1 to 25, each number touching the next.

The rules of Hidoku

  1. Every number once

    The grid holds the numbers from 1 up to its number of squares, each in one square: 1 to 25 in a 5×5 grid, 1 to 81 in a 9×9.

  2. Each number touches the next

    2 sits next to 1, 3 next to 2, and so on to the end. Next to means across, down or diagonally, the way a king moves in chess.

  3. One unbroken chain

    Read in order, the numbers make one path that visits every square of the grid. It never jumps, and it may cross its own path on a diagonal.

  4. Both ends are printed

    1 and the last number are always given and ringed, so you know where the chain starts and where it stops. Other printed numbers are spread between them.

  5. One solution

    The printed numbers allow one chain only. Logic finds every missing number, with no guessing.

10
13
9
8
16
5
17
25
23
1
3
22
21
13 of 25 numbers printed. The ringed ones, 1 and 25, are the two ends of the chain.

Solve your first Hidoku

A 5×5 Easy puzzle from our generator: the numbers 1 to 25, thirteen of them printed. The steps under the grid solve it a few numbers at a time, each one next to a number already written. Try it yourself first, then compare with the steps.

Numbers 1 to 25 · one chain

Tap a square, then type its number from 1 to 25. Each number touches the next, across, down or diagonally.

  1. Step 1

    Start where the chain almost meets

    10
    11
    13
    9
    8
    16
    5
    17
    4
    25
    23
    20
    1
    3
    22
    21

    One empty square touches both 3 and 5: row 4, column 2, so 4 goes there. 10 sits in the corner with 9 and 8 beside it, and 11 takes the third square around it. In the opposite corner, 22 and 23 sit beside 21, and 20 takes the one square left around it.

  2. Step 2

    Close three more gaps

    10
    11
    13
    9
    8
    12
    16
    5
    19
    17
    2
    4
    25
    23
    20
    1
    3
    22
    21

    2 touches 1 and 3, and with 4 in row 4, column 2 only row 4, column 1 is left. 12 goes in row 2, column 3, the one empty square beside both 11 and 13. 19 follows 20 into row 3, column 4, the last free square around it.

  3. Step 3

    Two more numbers between neighbours

    10
    11
    13
    9
    8
    12
    18
    16
    5
    19
    17
    2
    4
    25
    23
    20
    1
    3
    24
    22
    21

    18 goes between 17 and 19, in row 2, column 4. 24 goes between 23 and 25, in row 5, column 3, the last empty square of the bottom row.

  4. Step 4

    After 5 and after 13

    10
    11
    13
    14
    9
    8
    12
    18
    16
    6
    5
    19
    17
    2
    4
    25
    23
    20
    1
    3
    24
    22
    21

    5 now has one empty square around it, row 3, column 2, and 4 is already placed, so 6 goes there. 13 also has one empty square left beside it, row 1, column 4, and 14 goes there.

  5. Step 5

    The last two gaps

    10
    11
    13
    14
    15
    9
    8
    12
    18
    16
    7
    6
    5
    19
    17
    2
    4
    25
    23
    20
    1
    3
    24
    22
    21

    7 goes between 6 and 8 in row 3, column 1, and 15 between 14 and 16 in row 1, column 5. Every number from 1 to 25 is in the grid once, each one touching the next. Solved.

Neighbours and steps

Every move in Hidoku comes down to two questions: which squares touch, and how far the chain can get in the numbers it has. A square touches the squares beside it, above and below it and on its four corners. From one number to the next the chain moves one square, so the gap between two written numbers tells you how far apart they can be.

Eight neighbours at most

A square in the middle of the grid touches eight others, a square on the edge five and a corner just three. Every empty square needs the number before it and the number after it among those, so the corners and edges fill up first.

One step per number

From 12 to 15 the chain makes three steps of one square each, diagonals included. So 15 is at most three rows and at most three columns away from 12. Count the rows and the columns between two squares, and the larger of the two is the number of steps.

A straight run

When two written numbers are exactly as many steps apart as their difference, the chain has no time to wander: each number between them moves one row or column closer. 30 in row 6 and 35 in row 1 are five apart and five rows apart, so 31 to 34 take rows 5, 4, 3 and 2, one each. 31 also has to touch 30, and row 5, column 3 is the only free square that does both.

14
13
36
35
9
16
15
12
11
18
17
26
1
20
23
31
28
2
21
22
30
3
A straight run in a Medium puzzle: 30 and 35 are five rows apart, so 31 to 34 take one row each, and 31 goes in the one free square of row 5 beside 30.

The order to work in

Every Hidoku, small or large, is solved in the same loop. Go down this list, and start again from the top of it each time you write a number.

  1. Find 1 and the last number, both ringed, and read the printed numbers in order. Note where two of them are one number apart.

  2. Fill every gap of one: a missing number between two written ones goes in the square that touches both, when only one does.

  3. Look around each written number. When one square beside it is empty and its neighbour in the chain is not written, that neighbour goes there.

  4. Count the steps from the nearest written numbers before and after each missing one. Write a number when it has one square left, or when it is the only number that reaches a square.

  5. Write the squares each missing number can take, and cross out the ones the chain could not use: away from every square of the next number, without room for both neighbours, taken by a pair, or in a closed-off area it cannot fill.

  6. Still stuck: take a number with two squares, try one and follow the sure moves. If a number is left with no square, the other square is right. After each new number, go back to the second step.

9 Hidoku solving techniques

From a gap of one number to a number tried and followed, in the order you need them. Each one is shown on a real puzzle from our Hidoku generator, at the moment the move applies.

  • printed
  • found earlier
  • new in this move
  • the numbers the move reads
  • the squares to look at
  • a number crossed out of a square
  • tried, not sure

Easy: next to the numbers you can see

Easy puzzles in our books are 6×6 grids with about half of the 36 numbers printed. Most missing numbers have a written neighbour in the chain, so you only look at the squares right around it.

Fill a gap of one number

30
17
16
32
29
36
13
1
11
22
34
20
2
10
23
6
3
24
5

When the numbers on both sides of a missing one are written, it goes in a square that touches both. If only one empty square does, that is its place.

1 is in row 3, column 4 and 3 in row 5, column 6, two rows and two columns apart. A square between them has to touch both, and only row 4, column 5 does: it sits on the diagonal between them. So 2 goes there.

Follow a number into its only free square

14
15
36
12
19
16
10
23
33
31
22
24
32
30
1
25
29
6
5
3
27

A written number needs the next number, or the one before, on a square around it. When just one square around it is still empty, that number goes there.

30 is in row 4, column 6, on the right edge, with five squares around it. 31, 32, 33 and 25 fill four of them, and none of those is 29. So 29 has to be the one square still empty, row 5, column 6.

Medium: count the steps

Medium puzzles are 7×7 in our books and print 17 to 22 of their 49 numbers. Many missing numbers now have no written neighbour, so count how far the chain can get between the written numbers before and after them.

Count the steps to the next written number

36
4
1
26
33
8
24
30
7
14
16
19
11
18
20

From one number to the next the chain moves one square, in any direction. A missing number is never more steps from a written one than the numbers between them: 9 is at most two steps from 11.

8 is in row 3, column 1 and 11 in row 6, column 2, with 9 and 10 missing between them. 9 touches 8, so it is in row 2, 3 or 4. It is also at most two steps from 11, which rules out rows 2 and 3. The one square left is row 4, column 2.

Find the only number for a square

24
18
13
15
21
1
36
9
29
32
6

Every square holds a number. When one missing number alone can reach an empty square, that square is its own.

Which missing number can reach the top-right corner? 14 would have to touch 13 in row 2, column 4, and 17 would have to touch 18 in row 1, column 4: both are two columns away. Every other missing number is too far from its written neighbours too. Only 16, next to 15 and two steps from 18, gets there, so the corner is 16.

Hard: cross out squares the chain cannot use

Hard puzzles are 8×8 in our books, and counting the steps alone no longer solves them. Write the squares each missing number can still take, then cross out the ones the chain could not pass through. When a number has one square left, write it in.

Look one number further

33
1
4
16
9
36
15
10
26
14
22
25
13

A missing number must touch the number before it and the number after it. When that number is missing too, cross out every square that touches none of its squares.

23 and 24 are missing between 22 in row 6, column 2 and 25 in row 6, column 3. 24 touches 25, so it is in row 5, column 2, row 5, column 4 or row 6, column 4. 23 touches 22, so it is in row 5, column 1, row 5, column 2 or row 6, column 1. Column 4 is two columns from all of those, so 24 cannot be there, and it goes in row 5, column 2.

Leave room on both sides

33
16
15
13
36
17
14
12
27
11
26
1
19
7
22
20
6
23
24

A missing number between two missing ones needs two squares around it: one for the number before and one for the number after. A square with no room for both is crossed out.

8, 9 and 10 are all missing. Counted from 7 and 11, 9 has six squares, but 8 has to touch 7 and 10 has to touch 11, so they can only use row 3, column 4, row 3, column 6, row 4, column 6 and row 5, column 6. Of 9’s squares, only row 4, column 6 has two of those around it, row 3, column 6 above and row 5, column 6 below. So 9 goes there.

Pair up two numbers

32
33
8
10
34
31
7
35
30
14
29
36
1
28
27
24
17
26
25
21

When two missing numbers have the same two squares left, they take both of them, so no other number can go there.

21 is in row 6, column 3, and 20 and 22 both have to touch it. Every square around 21 is full except row 5, column 4 and row 6, column 4, so 20 and 22 share those two. That takes them away from 23, which could go there or in row 4, column 3, next to 24. So 23 is in row 4, column 3.

Fill closed-off areas exactly

3
2
28
26
4
1
30
25
27
5
36
22
24
6
35
23
12
10
9
18
11
13
14
15
16

Empty squares walled in by written numbers form an area of their own. Every run of missing numbers stays inside one area, and the runs that go in must fill it exactly.

Rows 4 to 6 of column 6 are three empty squares that touch no other empty one. Only 17, the run 19 to 21 and 33 can reach them. 33 belongs to the run 31 to 34, which cannot get there because 31 cannot, and 17 alone is one number. Only 19, 20 and 21 fill the three squares exactly, so they go there. 21 must touch 22 in row 3, column 5, and only row 4, column 6 does.

Expert: try a number

Expert puzzles are 9×9 in our books, the numbers 1 to 81. Somewhere the sure moves run out, and a number has to be tried in one of its two squares and followed until the grid holds or breaks.

Try a number and follow it

15
14
18
19
13
8
25
10
9
12
27
1
36
5
30
29
4

Pick a number with two squares left, write it in one and follow the sure moves. If a number is left with no square, the try was wrong and the other square is right.

13 goes between 12 and 14, and only row 2, column 5 and row 2, column 6 touch both. Try column 5. 15 has to touch 14 and still reach 18 in three steps, which leaves row 1, column 5. No other number can reach row 2, column 6 now but 8, and 9 then fills the gap between 8 and 10 in row 3, column 5. Every square around 8 is full, so 7 has nowhere to go. 13 is in row 2, column 6.

Practice puzzles

6 grids from our generator, each a step harder than the one before. Each is solved with the moves of this guide; the hint button names the numbers or the squares of the next move. Tap a square and type its number, digit by digit.

Puzzle 1

6×6 Easy, the size of our Easy books: the numbers 1 to 36 with eighteen printed. Each missing number goes next to one already written.

Numbers 1 to 36 · one chain

Tap a square, then type its number from 1 to 36. Each number touches the next, across, down or diagonally.

Puzzle 2

6×6 Medium: the numbers 1 to 36 with sixteen printed. Count the steps between the written numbers.

Numbers 1 to 36 · one chain

Tap a square, then type its number from 1 to 36. Each number touches the next, across, down or diagonally.

Puzzle 3

7×7 Medium, the size of our Medium books: the numbers 1 to 49 with eighteen printed and the whole top row empty.

Numbers 1 to 49 · one chain

Tap a square, then type its number from 1 to 49. Each number touches the next, across, down or diagonally.

Puzzle 4

7×7 Hard: the numbers 1 to 49 with twenty-two printed. When the steps run out, write the squares each number can take and cross them out.

Numbers 1 to 49 · one chain

Tap a square, then type its number from 1 to 49. Each number touches the next, across, down or diagonally.

Puzzle 5

8×8 Hard, the size of our Hard books: the numbers 1 to 64 with twenty-six printed.

Numbers 1 to 64 · one chain

Tap a square, then type its number from 1 to 64. Each number touches the next, across, down or diagonally.

Puzzle 6

9×9 Expert, the size of our Expert books and the hardest here: the numbers 1 to 81 with twenty-six printed. Somewhere it needs a number tried.

Numbers 1 to 81 · one chain

Tap a square, then type its number from 1 to 81. Each number touches the next, across, down or diagonally.

Want more? Make a fresh page with the Free Hidoku Puzzle Generator and print it, with its answers.

Five mistakes that cost the most time

Forgetting the diagonals

Squares that meet at a corner touch too. A number that looks stuck often has its next number on a diagonal.

Counting squares instead of steps

A diagonal move is one step. From row 1, column 1 to row 3, column 3 is two steps, not four, so the chain gets further than it looks.

Checking one neighbour only

A number next to the one before it can still leave the one after it no square. Look at both ends before you write it.

Cutting off a corner

A corner with all three neighbours written needs two of them exactly two apart, like 30 and 32, with 31 in the corner. If no two are, the corner can never be filled, and a number around it is wrong.

Guessing

A guess can fit for a while and break the chain much later. Trying a number is different: you follow it with sure moves only and rub it out as soon as a number has no square left.

Hidoku levels and sizes

A bigger grid and fewer printed numbers make a puzzle longer, but what sets the level is the logic it needs. This is how our book generator makes its four levels, with the grid each one uses by default.

LevelGridPrinted numbersMoves it needs
Easy6×618 to 20 of 36A gap of one number and the only free square around a number.
Medium7×717 to 22 of 49Those, then counting the steps and the only number for a square.
Hard8×821 to 26 of 64All of those, then crossing out squares: one number further, room on both sides, pairs and closed-off areas.
Expert9×923 to 32 of 81All of those, then a number tried and followed.

The printed numbers are the fewest and the most in 15 puzzles of each preset. Kids books start at 4×4 grids of 1 to 16 and keep to Easy and Medium; senior books use 5×5 to 7×7 grids by default, up to Hard.

Hidoku words

Chain
The numbers from 1 to the last in order: one path through every square of the grid.
Neighbour
A square that touches another across, down or diagonally. An inner square has eight.
Gap
A missing number between two written ones, such as 8 between 7 and 9.
Steps
The moves from one square to another, one square at a time in any direction: the larger of the rows and the columns between them.
Run
Missing numbers one after another between two written ones, such as 19, 20 and 21 between 18 and 22.
Candidate
A square a missing number can still take; written small, also called a pencil mark.
Pair
Two missing numbers with the same two squares left. They take both, and no other number can.
Closed-off area
Empty squares walled in by written numbers. The runs that go in must fill it exactly.

Questions and answers

What are the rules of Hidoku?

Write a number in every empty square so that the numbers from 1 to the last square each appear once and every number touches the next one across, down or diagonally. Together they form one chain through the whole grid. 1 and the last number are printed and ringed.

How do I start a Hidoku?

Look for two printed numbers with one number missing between them, like 7 and 9. If only one empty square touches both, the missing number goes there. Then look at the printed numbers with a single free square around them.

What other names does Hidoku have?

Number snake and number chain are the names you will meet most often. They are the same puzzle: one chain of numbers through the grid, each number touching the next across, down or diagonally. A chain that may only move across and down, never diagonally, makes a different puzzle with its own rules.

Can the chain cross itself?

Yes, on a diagonal. Two diagonal steps can cross between the same four squares: in puzzle 1 on this page, the step from 1 to 2 crosses the step from 3 to 4. Each square still holds one number, so the chain never runs through a square twice.

Why are 1 and the last number ringed?

They are the two ends of the chain, and they are always printed. A ring tells you the number has one neighbour in the chain, not two: 1 only needs 2 beside it, and the last number only the one before it.

Do you ever have to guess in Hidoku?

No. Every grid on this page is solved with the moves of this guide, and our generator checks each puzzle with the same moves before it goes into a book. The hardest move, trying a number, is not a guess: a wrong number leaves another one with no square, and the other choice is left.

What makes a Hidoku hard?

A bigger grid and printed numbers far apart in the chain. In our books Easy puzzles are 6×6 with about half the numbers printed, Hard ones 8×8 with 21 to 26 of 64, and Expert ones 9×9, the numbers 1 to 81, with a number to try somewhere.

Is Hidoku like Sudoku?

Only in looks. Both are grids of numbers, but Hidoku has no rows, columns or boxes to complete, and the numbers go far past 9. What counts is where each number sits next to the one before and after it, so you think in paths rather than sets.

Are Hidoku puzzles good for children?

Yes. They train counting, order and looking ahead, and only need numbers a child can count to. Our children’s books start at 4×4 grids of 1 to 16 with eleven numbers printed, and keep to Easy and Medium puzzles.

Hidoku on a printed page

A puzzle page and its answer key page, as they come out of a Hidoku book.

Hidoku puzzle page
A Hidoku puzzle page
Hidoku answer key page
An answer key page from the back of the book

Make your own Hidoku book

Print-ready Hidoku books for Amazon KDP, Easy to Expert on grids from 4×4 to 10×10, one solution per puzzle and the answer key. Hidoku books are in the Pro and Publisher plans, and in the free trial.

Hidoku book generator

Just one page? Free Hidoku Puzzle Generator