Gridwise guides

How to solve nonograms: 6 techniques for beginners

A nonogram is a picture hidden in a grid. The numbers beside each row and above each column give the lengths of that line's filled runs, in order. Runs in the same line are separated by at least one empty cell. So a row clued 3 1 has a run of three filled cells, then at least one gap, then a single filled cell. Fill every run in every line and the picture appears.

In the examples below, F is a filled cell, x is a cell you know is empty, and . is a cell you have not decided yet. Positions are counted from the left of a row or the top of a column. Mark empty cells as you find them: they are as useful as filled ones.

1. Fill the lines that only fit one way

Add up a line's clues, then add one empty cell between each pair of runs. If the total equals the length of the line, there is only one way to place the runs, and you can fill the whole line straight away.

Example, in a row of five: the clue 5 fills every cell. The clue 2 2 needs 2 + 1 + 2 = 5 cells, so the row is F F x F F. The clue 1 1 1 needs 1 + 1 + 1 + 1 + 1 = 5, so it is F x F x F. Scan every row and column for these before anything else.

2. Use the overlap method

When a run is long compared with its line, it must cover the middle cells wherever it sits. Push all the runs as far left as they go, then as far right as they go. Any cell covered by the same run in both positions is filled.

There is a quick way to count it. Work out the line's slack: its length minus the minimum space the clues need. Any run longer than the slack fills its length minus the slack, in the middle of its range. In a row of six with the clue 4, the slack is 6 - 4 = 2, so 4 - 2 = 2 cells are certain. Pushed left, the run covers cells 1 to 4; pushed right, cells 3 to 6. Cells 3 and 4 are filled: . . F F . .

It works with several runs too. In a row of eight clued 3 2, the minimum space is 3 + 1 + 2 = 6, so the slack is 2. The run of three is longer than the slack and fills one cell: it covers cells 1 to 3 at the left and 3 to 5 at the right, so cell 3 is filled. The run of two is not longer than the slack, so it gives nothing yet.

3. Grow runs from the edges

A filled cell near the edge of a line must belong to the first run, so it pins that run down. If the first clue is n and you find a filled cell within the first n cells, then every cell from that filled cell to cell n is filled too.

Example, a row of eight whose first clue is 3, with cell 2 filled: . F . . . . . . The run of three covers cell 2, so it sits on cells 1 to 3 or 2 to 4. Both include cell 3, so cell 3 is filled. If the filled cell is right against the wall, at cell 1, the run is fixed completely: cells 1 to 3 are filled and cell 4 is empty. The same reasoning works from the other end with the last clue.

4. Mark the cells no run can reach

Once a run is complete, the cells on either side of it are empty. And once you know roughly where every run lies, any cell that no run can reach is empty as well.

Example: a row of six clued 2, with cell 3 filled: . . F . . . The run of two must include cell 3, so it sits on cells 2 to 3 or 3 to 4. Cells 1, 5 and 6 are out of its reach, so mark them x: x . F . x x. When a line's runs are all placed, cross out everything left over. Empty cells matter because they feed the crossing lines, as the next two techniques show.

5. Let empty cells split the line

An x divides a line into separate stretches, and a run can never span an empty cell. A stretch shorter than every run that could go there must be empty, and the stretch a run is left with may be short enough to trigger the overlap method again.

Example: a row of eight clued 3, with cell 3 marked x. Cells 1 and 2 form a stretch of two, too short for a run of three, so they are empty. The run now lives in cells 4 to 8, a stretch of five with a slack of 2. It covers cells 4 to 6 or 6 to 8, so cell 6 is filled. Edge-clue reasoning from technique 3 then applies to the new edge at cell 4.

6. Work rows and columns against each other

Every cell sits in one row and one column, so each deduction you make in a row is new information for a column, and the other way round. Solving a nonogram is a loop: finish what you can in the rows, then turn to the columns that just gained a filled or empty cell, then back again.

When you feel stuck, look for the line that changed most recently and try every technique on it again. A single new x can split a column, which fixes a run, which fills a cell in a row you had given up on. Every Nonogram in Gridwise is generated so it can be solved this way, one line at a time, without guessing.

A routine that scales

Start with the lines that fit only one way. Then run the overlap method on every line with a long run. Grow runs from the edges and cross out cells nothing can reach. After that, keep alternating rows and columns, revisiting whichever lines just changed. A 5×5 grid usually falls in a couple of laps; a 10×10 takes more, and leans more on edges and splits once the middle is settled.