# Nurikabe

> Shade a winding wall so every number sits in a white island of exactly that size.

Also called: Islands in the Stream

Kind of puzzle: Shading

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

## Origin

Nurikabe was invented by the puzzle author renin and first ran in Nikoli's magazine in 1991, taking its name from an invisible wall in Japanese folklore.

## Credit

- Inventor: renin (1991)
- Popularized by: Nikoli
- Source: [Wikipedia](https://en.wikipedia.org/wiki/Nurikabe_(puzzle))

## Rules

1. Each number sits in a white island of exactly that many cells, and each island has one number.
   - ✓ Right: Island of 3
   - ✗ Wrong: Island too big
2. All the shaded cells connect.
   - ✓ Right: One wall
   - ✗ Wrong: Two pieces
3. No 2×2 block is all shaded.
   - ✗ Wrong: A pool

## Worked example: Five Islands

A 5×5 Nurikabe 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":[0,0],"kind":"number","value":1},{"at":"cell","cell":[0,2],"kind":"number","value":3},{"at":"cell","cell":[0,4],"kind":"number","value":2},{"at":"cell","cell":[2,0],"kind":"number","value":1},{"at":"cell","cell":[4,2],"kind":"number","value":5}]
```

The solution, a line per row (`#` is a marked cell (shaded, or whatever this type places in a cell), `.` is left empty):

```
.#.#.
##.#.
.#.##
####.
#....
```

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

## Playing on inkit

Tap a cell to shade it, again for a dot (white), again to clear.
