How Nurikabe works

Nurikabe is a shading puzzle: you paint a winding wall through a grid and leave islands of unshaded cells, each as big as the number in it. This page explains the rules, where the puzzle and its name come from, the deductions that open a grid, how to keep the wall in one piece, and how the puzzles on PictorX are made.

A Nurikabe grid with numbered sand islands surrounded by a blue wall
A Nurikabe grid with numbered sand islands surrounded by a blue wall

The rules

A Nurikabe grid starts with some numbered cells. You shade cells to make the wall, and the cells you leave unshaded form islands. Every island holds exactly one number and has exactly that many cells, so a 1 is an island on its own. Islands never touch each other side by side. All shaded cells form one connected wall, and no 2 × 2 block may be fully shaded.

Where the puzzle comes from

Nurikabe comes from the Japanese publisher Nikoli, the home of many pencil puzzles, which gave it its name and printed it in its puzzle magazine. From there it spread to puzzle books and websites around the world. The name is that of a creature from Japanese folklore, a yokai: an invisible wall that blocks the way of people walking at night. The word itself means a plastered or painted wall.

First deductions

Start with the cells around each 1: they are all wall. A cell between two numbers that belong to different islands is wall too, because it would join them. When an island has all its cells, every cell beside it is wall. A cell that no number can reach within its size is wall as well. On the other side, an island that is not complete and has only one way to grow must grow there.

Keeping the wall whole

The wall must stay in one piece, so a part of it that has only one free cell to escape through must continue there. Three shaded cells of a 2 × 2 block make the fourth an island cell. Harder puzzles need you to think ahead: suppose a cell is wall and follow the consequences; if they break a rule, such as cutting the wall in two or leaving an island too small, the cell is an island.

How the puzzles are made

The generator first builds a random answer: it grows islands of one to seven cells from a grid that is all wall, keeping them apart and the wall connected, and breaks up every 2 × 2 block of wall. Each island gets its number in one of its cells. A solver then looks for a second answer that fits the numbers; while there is one, the answer is changed a little where the two differ and checked again, until exactly one answer is left. The difficulty comes from how far the solver has to think ahead.

Frequently asked questions

Can two islands touch at a corner?

Yes. Islands may not share a side, but they may touch diagonally. The wall then passes between them through the cells on either side of that corner.

Why may the wall not have a 2 × 2 block?

Without that rule the wall could swallow large areas and many puzzles would have more than one answer. The rule keeps the wall thin and winding, like the channels between islands.

What does Nurikabe mean?

It is the name of a yokai from Japanese folklore, an invisible wall that blocks travellers at night. Taken word by word, it means a plastered or painted wall.

Do I need to mark the island cells?

No. Only the wall counts: the puzzle is solved when the right cells are shaded. Dots on island cells are a help to remember what you have worked out.

Ready to try it?

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

Play Nurikabe