Puzzle guide

Nonogram Tips: What a Solver Learned From 4,000 Puzzles

By 5 min read

The GRIDLUME title over a glowing pixel heart on a dark indigo background, with two Gridlume game screens
Gridlume: cross out the empty cells.

Key takeaways

  • On an empty 10×10 random puzzle, single rows and columns already decide 34.0% of the cells.
  • A solver that never crossed out empty cells finished only 2 of 1,000 random 10×10 puzzles; with crosses it finished all of them.
  • Going back only to the lines that cross a changed cell took 47.2 line checks on a 10×10 puzzle, against 86.8 for sweeping every line again.
  • Without a logic check, 30.0% of random 10×10 grids had more than one answer.

The nonogram tip that matters most is to cross out the cells you know are empty: in Gridlume, a solver that only ever filled cells finished 2 of 1,000 random 10×10 puzzles, while the same solver with crosses finished all of them. Below are the numbers from 4,000 random puzzles and the 50 pictures of the game.

How a nonogram works

Each row and column has a list of numbers. Each number is a run of filled cells, the runs come in that order, and there is at least one empty cell between two runs. A row of 10 with the numbers 3 1 might be three filled cells, a gap, and one more filled cell somewhere to the right. Fill every cell correctly and the filled cells form a picture.

What we measured

We wrote a solver that works the way a player does: it takes one row or column at a time, looks at every way the numbers can fit with the cells already known, and marks the cells that are the same in all of them. It repeats until nothing changes. We gave it 1,000 random puzzles in each size, made exactly as Gridlume makes them, and the 50 pictures of the game.

Gridlume solver runs, 1,000 random puzzles per size
SizeCells decided by single lines on an empty gridFinished without crossesFull passes needed
5×555.4%18.8%2.99
10×1034.0%0.2%4.34
15×1527.6%0%5.58
20×2023.8%0%6.64

The solver never makes a mistake and always sees every way a line can be filled. A person is slower and sometimes misses a placement, but the same habits help, which is why the comparisons are the useful part.

Start with lines that are nearly full

Add up the numbers of a line and one gap between each pair. If the total comes close to the length of the line, the runs cannot move far, and the cells they cover in every position must be filled. A run of 8 in a line of 10 can only start at three places, so the six cells in the middle are filled whatever happens. On an empty 10×10 puzzle, this kind of reasoning on single lines decided 34.0% of the cells before any line had helped another, and 46.3% of the rows and columns gave at least one cell straight away.

Cross out empty cells

It is tempting to fill cells and leave the rest blank. But an empty cell you are sure of is information too: it splits a line into pieces, and it stops a run from sliding into it. When we made the solver forget every empty cell it found, it could finish only 188 of 1,000 random 5×5 puzzles, 2 of 1,000 at 10×10, and none at 15×15 or 20×20. With crosses it finished every one.

Follow the changes

Once you fill or cross a cell, the row and the column through it may now say more. Going back to those lines first, instead of reading through every row and column again, took 47.2 line checks on an average 10×10 puzzle against 86.8 for full passes, and 146.6 against 265.7 on 20×20.

Bar chart of Gridlume solver runs by puzzle size: line checks needed when following changes versus sweeping every line, from 5x5 to 20x20
Line checks per puzzle: following the changes against reading every line again.

Puzzles that need a guess

A random grid of filled cells does not always make a fair puzzle. We made 300 random 10×10 grids with no check at all: 30.0% had more than one answer, so no amount of logic could tell which one was meant. At 15×15 the share was 42.0%. Gridlume only keeps puzzles that line logic finishes, so there is always one answer and always a next step.

5 tips that follow from the numbers

  • Start with the big numbers. A line whose numbers nearly fill it gives cells at once.
  • Cross out what you know is empty. Without crosses, almost no 10×10 puzzle could be finished.
  • Follow every change. Look at the row and column through a new cell before anything else.
  • Use the edges. A filled cell at the edge of a line fixes the whole first run.
  • Do not guess. In a well-made puzzle a logical step always exists; if you cannot find one, look again at a line that has changed.

Where to try it

Play Gridlume with 50 pictures from 5×5 to 15×15 and random puzzles up to 20×20, all solvable by logic alone. For another logic game on the site, Tilegrove is mahjong solitaire, and Wordcairn is a word groups puzzle.

Frequently asked questions

Where should you start a nonogram?

With the lines whose numbers, plus one gap between each, come close to the length of the line. Those lines force cells in the middle at once; on an empty 10×10 puzzle, single lines decided 34.0% of the cells in our test.

Do you need to mark empty cells?

Yes. A solver that only filled cells finished 2 of 1,000 random 10×10 puzzles. The crosses are what let one line help the next.

What is the overlap rule?

If a run can slide only a little within its line, the cells it covers in every position must be filled. A run of 8 in a line of 10 can start at three places, so the middle 6 cells are always filled.

Do nonograms ever need guessing?

Some do. Of 300 random 10×10 grids we made without any check, 30.0% had more than one answer. Every Gridlume puzzle is checked so that line logic alone finishes it.

How many passes does a nonogram take?

On our random 10×10 puzzles the solver needed 4.34 full passes over all rows and columns on average, and 6.64 on 20×20.

Is this how people solve them?

Not exactly. A program looked at whole lines with perfect accuracy. The habits it measured, starting with full lines, crossing out cells and following changes, are the same ones a careful player uses.

About the author. This guide was written by the team behind Yes This Game. We design, build and test our own browser games, so when a guide quotes numbers, they come from the game’s own code and can be reproduced.

Found a mistake or have a question? Tell us and we will fix the guide.