How Slitherlink works

Slitherlink is a puzzle of dots and a few numbers: you join the dots into one closed loop, and each number says how many of its cell's sides the loop uses. This page explains the rules, where the puzzle comes from, the patterns that open a grid, the techniques that finish it, and how the puzzles on PictorX are made.

A Slitherlink grid of dots and numbers with part of the loop drawn and some edges crossed out
A Slitherlink grid of dots and numbers with part of the loop drawn and some edges crossed out

The rules

The board is a rectangle of dots, and some of the squares between them hold a number from 0 to 3. You draw lines between neighbouring dots, across or down, to make a single closed loop. The loop may not cross itself or branch: at every dot it either passes through, using two of the edges there, or does not touch it at all. Each number tells how many of the four sides of its square are part of the loop; a square without a number can have any count.

Where it comes from

Slitherlink comes from Nikoli, the Japanese puzzle publisher that also made Sudoku and Kakuro popular. It first appeared in Nikoli's puzzle magazine in 1989 and became one of its classic pencil puzzles, alongside others such as Nurikabe and Akari. In English it is also known as Fences or Loop the Loop.

Patterns that open a grid

A 0 crosses out all four of its sides at once, and a 3 next to a 0 then takes its other three sides. A 3 in a corner of the board draws its two outer sides, and a 1 in a corner crosses out its two outer sides. Two 3s side by side always have the side between them and the two sides parallel to it on the loop. Two 3s that touch only at a corner have the two sides at their far corners on the loop.

Dots, loops and inside or outside

Most of the solving happens at the dots: a dot with two lines crosses out its other edges, and a line that reaches a dot with only one way on must take it. A line may never close a small loop while other lines are left outside it. A stronger idea is inside and outside: the loop splits the board in two, every line separates an inside square from an outside one, and two neighbouring squares on the same side have a cross between them. Hard puzzles also need you to think ahead: if this edge were a line, would a number or a dot break a rule a few steps later?

How the puzzles are made

The generator grows a random shape of squares from a single square, adding neighbours only while the shape stays in one piece, without holes and without squares that touch only at a corner, so that its outline is one loop. Every square then gets the number of its sides on that loop. Numbers are taken away in random order as long as the puzzle can still be solved: on Easy by the rules at the numbers and dots alone, on Medium with a few one-step what-ifs, and on Hard as long as a solver that tries every possibility still finds exactly one loop.

Frequently asked questions

Why are there no 4s?

A square with all four sides on the loop would be a loop of its own around that one square. Since the loop is the whole answer, a 4 could only appear on a puzzle whose loop is a single square, so real puzzles use 0 to 3.

Can the loop touch itself at a corner?

No. At every dot the loop uses either two edges or none, so it cannot cross, branch or touch itself at a dot, not even diagonally.

What are the crosses for?

A cross marks an edge you know is not part of the loop. Crosses are not needed for the answer, but they make the next steps much easier to see, because a dot with only one open edge left is often what finishes a line.

Is there a way to solve it without guessing?

A well-made Slitherlink has exactly one solution and can be solved by logic alone. On harder puzzles that logic includes thinking ahead: trying a line in your head and seeing that it leads to a broken rule, which proves the edge must be crossed out.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

Play Slitherlink