Paint-and-place logic puzzles
Puzzles where number clues settle what each cell must be. They look gentle, yet in large sizes they turn out to be “NP-complete”.
Nonogram, Bulb Placement and Mine Logic. You paint cells, place bulbs, or decide where mines are, but all three are the same kind of puzzle: number clues settle, one cell at a time, what each cell must be. And no luck is needed.
Nonogram (the site’s “Nonogram”)
The numbers on each row and column give the lengths of the runs of filled cells. “1 3” means a run of 1, at least one gap, then a run of 3. When everything is filled in, a picture appears.
This puzzle is said to have arisen in Japan around 1987. A graphic editor, Non Ishida, and a professional puzzle author, Tetsuya Nishio, each came up with similar puzzles separately. Which came first can’t be said for sure, and the fun part is that two people had the idea at about the same time. The name “nonogram” is said to have been coined by a British collector, joining Ishida’s “Non” with “diagram.” Publishers and games have given it many other names too.
When a row alone leaves several possibilities, crossing it with the columns shows cells that must be filled or must stay empty. Every picture on this site has exactly one solution and can be finished with row and column information alone.
Bulb Placement (the site’s “Bulb Placement”)
Place bulbs on white cells so that every white cell is lit. Light travels along rows and columns and stops at walls. Two bulbs must never light each other. A number on a wall says how many bulbs sit directly beside it (up, down, left, right).
This puzzle is said to have been devised around 2001 by a reader of a puzzle magazine. It did not come from a professional author but from an ordinary reader’s idea. The hints also teach working backwards: “which positions could light this cell?”
Mine Logic (the site’s “Mine Logic”)
A number tells how many of the 8 surrounding cells hold mines. When a number already has that many flags, its other neighbours are safe. When the remaining mine count equals the number of unknown neighbours, all of them are mines. The puzzles here start with a safe area already open and can be finished without guessing.
Tents and Trees, Star Placement, Erase Repeats, Number Regions
The site has more puzzles of the same “decide from the clues” kind. The program checks that each of these puzzles has exactly one solution and can be finished by following the clues. Who first devised them, and when, is not well documented.
Tents and Trees (the site’s “Tents and Trees”)
Place a tent beside each tree (up, down, left or right) so that trees and tents pair off one to one. Tents may not touch each other, even diagonally. The numbers outside the board are the tent counts for each row and column. Once a row or column has all the tents it needs, no more can go there. If the number still needed equals the number of open cells, all of them take tents.
Star Placement (the site’s “Star Placement”)
Put a fixed number of stars in every row, every column and every bold-outlined region: one each on 5 × 5, two each on 8 × 8. Stars may not touch, even diagonally. A useful fact is that any 2 × 2 square can hold only one star. When nothing is forced directly, try a star somewhere and see whether the counts stop working.
Erase Repeats (the site’s “Erase Repeats”)
On a board of numbers, shade some cells so that no number repeats in any row or column. Shaded cells may not share an edge, and the cells left white must all be connected. If a cell sits between two equal numbers, it must stay white: one of the two ends will be shaded, and shaded cells cannot be neighbours. A cell whose shading would split the white cells apart must also stay white.
Number Regions (the site’s “Number Regions”)
Fill the empty cells with numbers so that the board divides into regions. A region is a connected group of the same number, and a region of number n has exactly n cells. Separate regions of the same number may not touch along an edge. A region can be neither too big nor stuck too small. Try each number a cell could take, cross out the ones that break these conditions, and a cell with only one choice appears.
Lines and regions: Bridge Builder, Single Loop, Rectangle Split
Some puzzles draw lines or cut the board instead of painting cells. Luck plays no part here either. The program checks that each puzzle on the site has exactly one solution and can be solved by following the clues. Their origins are not well documented.
Bridge Builder (the site’s “Bridge Builder”)
Circles are islands, and each number says how many bridges touch that island. Connect islands that see each other along a row or column; bridges may not cross, and all the islands must end up as one network. The clue is “how many more bridges can this island take?” For example, a 4 island with only two directions open needs two bridges in each. Boards are 5 × 5, 7 × 7 and 9 × 9.
Single Loop (the site’s “Single Loop”)
Join the corner points of the cells into one closed loop. A number says how many of that cell’s four sides the loop uses. The loop never branches or crosses. Wherever the loop passes through a point, exactly two lines meet there. So many edges are settled by numbers and points together, such as a point with two lines already, or a dead end. Boards are 5 × 5 and 7 × 7.
Rectangle Split (the site’s “Rectangle Split”)
Cut the board into rectangles. Every rectangle holds exactly one number, and that number equals its area in cells. The clue is “which shapes can this number make?” A 6, for instance, can be 1 × 6, 2 × 3, 3 × 2 or 6 × 1, and shapes that hit the edge or another number are ruled out. Boards are 5 × 5, 7 × 7 and 9 × 9.
Drawing lines: Pearl Loop and Pair Link
Two more relatives join the centres of cells with lines. Rules such as “no branching” and “cover everything” become the clues.
Pearl Loop asks for one single loop through every pearl. At a white pearl the loop goes straight, and it turns in the cell just before or just after. At a black pearl it turns, and it goes straight through both neighbouring cells. Cells without a pearl may be left unused. A black pearl in a corner is obviously a turn of the loop. If the line closes up into two separate loops, you fail, so you also need the global view: “if I close it here, the other pearls can no longer be reached”. For each of the twelve 4×4 puzzles, this site’s program listed every way to draw a loop and confirmed that exactly one of them satisfies the rules.
Pair Link asks you to join each pair of matching numbers with a path along rows and columns. Paths cannot cross or branch, and every cell must be covered. A numbered cell has exactly one line leaving it, and every other cell has two lines of the same pair. So a narrow corridor that would become a dead end is immediately known to be unusable. The program confirmed for each of the twelve puzzles that there is exactly one answer, and that it can be reached from the clues alone.
We have no sourced record to point to for when or by whom these two kinds of puzzle were first thought up.
Gentle faces, “NP-complete” hearts
Mathematicians have found something the first three (Nonogram, Bulb Placement, Mine Logic) share: deciding whether a large board has a solution at all is thought to be a problem of the type called “NP-complete.”
- For Nonogram, deciding whether a general board has a solution is said to be NP-complete.
- For Bulb Placement, Brandon McPhail is said to have shown NP-completeness in 2005.
- For mine-style puzzles, Richard Kaye showed it in 2000. But what he showed is not the game itself. It is the question “given a board of numbers, is there a placement of mines that agrees with all of them?” That is a different problem from the real game, which depends on luck.
In plain words, “NP-complete” means that as boards grow, a single fast method that solves every board is probably never going to be found. It does not mean “cannot be solved.” The boards on this site are small, so you can solve them yourself by following the clues. The difficulty grows with size.
Mine Logic on this site offers only boards that need no guessing. That is the other face of Kaye’s question: if you move forward using only what the numbers guarantee, you reach the answer with no luck at all.
How to think about them
- Start with what is certain. In all three, look first for a cell that can only be one thing.
- Combine two sources of information. Rows and columns in Nonogram, lines of sight and wall numbers in Bulb Placement, neighbouring numbers in Mine Logic.
- Turn the question around. Ask “where could a bulb light this cell?” instead of “where should the next bulb go?”
- Count what is still possible. For tents and stars, “how many more are needed?”; for regions and rectangles, “which shapes can this number make?” A place with only one possibility soon appears.
In each of these puzzles the hints start with the idea. See only the idea first, and work out the rest yourself.
Sources
- Wikipedia — Nonogram
- Atlas Obscura — 電球配置の元になったパズルの項目(読者の投稿から生まれたという記述 / says it came from a reader’s submission)
- Brandon McPhail, “Light Up is NP-complete” (2005)(Wikipedia の当該パズルの項目が挙げる論文 / as cited by Wikipedia)
- R. Kaye, “Minesweeper is NP-complete”, The Mathematical Intelligencer 22(2), 9–15 (2000)
- Richard Kaye — ページ / author’s own page
- Cogniq Fun — このサイトのプログラムで確認 / Checked by this site’s program(全問が解ひとつだけで、推測なしに解けること / each puzzle has one solution and is solvable without guessing)
- Cogniq Fun — このサイトのプログラムで確認 / Checked by this site’s program(各4×4の12問が解ひとつ、輪になる線の全列挙で確認 / twelve puzzles each, one solution, checked by listing all loops)
- Cogniq Fun — このサイトのプログラムで確認 / Checked by this site’s program(各盤の問題が解ひとつだけで、手がかりから解けること / each puzzle has one solution and is solvable by clues)
Updated: 2026-10-17