# Slitherlink

> Draw one loop along the dotted lines; each number counts the sides of its cell the loop uses.

Also called: Fences, Loop the Loop

Kind of puzzle: Lines

Web page: https://inkit.games/puzzles/slitherlink

## Origin

Slitherlink first ran in the Japanese magazine Puzzle Communication Nikoli in 1989, made by its editors from two puzzles that readers sent in, and Nikoli made it popular.

## Credit

- Popularized by: Nikoli (1989)
- Source: [Nikoli](https://www.nikoli.co.jp/en/puzzles/slitherlink/)

## Rules

1. Draw one loop along the grid lines. It never branches or crosses itself.
   - ✓ Right: One loop
   - ✗ Wrong: Two loops
2. A number says how many of its cell's four sides the loop runs along.
   - ✓ Right: 3 sides
   - ✗ Wrong: Not 2 sides

## Worked example: First Loop

A 5×5 Slitherlink puzzle, with exactly one solution.

The givens, as inkit's puzzle engine writes them (cells are [row, column] from 0 at the top left):

```json
[{"at":"cell","cell":[2,1],"kind":"number","value":3},{"at":"cell","cell":[4,2],"kind":"number","value":2},{"at":"cell","cell":[0,3],"kind":"number","value":3},{"at":"cell","cell":[3,0],"kind":"number","value":3},{"at":"cell","cell":[1,3],"kind":"number","value":2},{"at":"cell","cell":[3,2],"kind":"number","value":0},{"at":"cell","cell":[3,4],"kind":"number","value":1},{"at":"cell","cell":[2,3],"kind":"number","value":2},{"at":"cell","cell":[3,1],"kind":"number","value":2},{"at":"cell","cell":[1,0],"kind":"number","value":3},{"at":"cell","cell":[0,0],"kind":"number","value":2}]
```

The solution is drawn on the web page: https://inkit.games/puzzles/slitherlink

Play it: https://inkit.games/g/slitherlink-1

## Playing on inkit

Drag along the dotted lines to draw. Tap a line to cycle line, ✕ and empty.
