Skip to content
PencilGrid

Thermometers technique · Hard

Contradiction: The What-If Step

A Thermometers Contradiction step settles one open cell by supposing it filled or empty and following the counts until a row or column can no longer hold its number. The assumption is then false, so the cell takes the other state. It is the only Hard step on PencilGrid's ladder, and the only one that needs two or more lines at once.

Published

Why is a what-if needed at all?

The eight easier steps each look at one row, one column or one thermometer. Together they find everything a single line can say. Some grids still have open cells after that, because the missing fact lives in how two lines share a thermometer or a cell. A Contradiction step is the way to reach it without new rules to memorise.

It is a proof and not a guess. You are not choosing a cell and hoping. You show that one of its two states makes the grid impossible, using only steps that are certain, and that leaves the other state as a fact.

On PencilGrid the step is kept short. A hint follows its assumption for at most eight deductions, never makes a second assumption inside the first, and picks the assumption that fails soonest. In the 150 Hard grids of our generator's first run, 264 of the 380 Contradiction steps fail within three or four deductions.

Worked example: where a Hard grid stalls

This is a 10×10 Hard grid from our generator, made in the same run as the dailies for a date before the game went live, so it was never published. Thirty-two hints in, the eight easier steps have nothing left. Row 9 counts 9 and holds seven filled cells, so it needs two of its three open cells: r9c1, r9c8 and r9c10. Exactly one of them is empty, and no single line says which.

That is a good place to test. A line one cell short of needing everything it has left reacts strongly to an assumption: call one cell empty and the others must all fill at once.

A 10 by 10 Thermometers grid after 32 steps, with the three open cells of row 9 tintedThe Hard example grid after 32 hints. Row counts from the top are 8, 8, 5, 6, 0, 5, 9, 2, 9 and 2; row 5 counts 0 and is fully crossed. Row 9 has seven filled cells and three open cells, r9c1, r9c8 and r9c10, which are tinted. Rows 1, 4, 7 and 8 are complete.●■■■■■■●●■■■■■■■■●○○■■■■●●⊗⊗⊗⊗○■●○●●●■■■■■■■■●⊗⊗●■■■■■●○○■○88560592925667864363
After 32 steps. Row 9 needs two of its three tinted cells, and the first eight techniques cannot say which.

Worked example: following the assumption

Suppose r9c8 is empty. Row 9 then needs both of its other open cells, so r9c1 and r9c10 are filled. Each of those is the tip of a two-cell thermometer standing on a bulb in row 10, so Fill to Bulb fills r10c1 under one and r10c10 under the other.

Now look at row 10. Its count is 2 and it already held one filled cell, r10c9. With the two bulbs it holds three. Row 10 is over its count, so the assumption was wrong and r9c8 is filled.

The chain is three deductions long and joins two lines, row 9 and row 10, through two thermometers that stand across both. Neither row could have produced the answer alone.

The same grid with r9c8 assumed empty, two cells of row 9 filled as a result and row 10 holding one cell too manyThe trial position. In row 9, r9c8 is outlined as emptied by assumption and r9c1 and r9c10 are outlined as filled. In row 10, the bulbs r10c1 and r10c10 are outlined as filled and r10c9, filled earlier, is tinted. Row 10 has a count of 2 and three filled cells.●■■■■■■●●■■■■■■■■●○○■■■■●●⊗⊗⊗⊗○■●○●●●■■■■■■■■●⊗⊗■●■■■■■×●■●○■●88560592925667864363
The assumption followed for three deductions. Row 10 may hold two filled cells and would hold three, so r9c8 cannot be empty.

Worked example: what the step gives back

With r9c8 filled, the grid moves again without further testing. Column 8 counts 3 and now holds three, so Count Reached crosses r2c8. That leaves row 2 one open cell for the one it still needs, so Count Forced fills r2c10, and Fill to Bulb fills the bulb beneath it, r3c10. The remaining eight steps are all from the first eight techniques, and this grid needs no second Contradiction.

That is typical of the easier Hard days. Of the 150 Hard grids in the first run, 49 need exactly one such step and the average is two and a half. The generator discards any grid that would need more than six.

The grid after the Contradiction step and the three steps that follow it, with r9c8, r2c10 and r3c10 newly filledThe Hard example grid after 36 hints. In row 9, r9c8 is outlined as newly filled. In column 8, r2c8 is outlined as newly emptied. In column 10, r2c10 and r3c10 are outlined as newly filled. Row 2 now holds its eight filled cells.●■■■■■■●●■■■■■■×■■■●○●■■■■●●⊗⊗⊗⊗○■●○●●●■■■■■■■■●⊗⊗●■■■■■■●○○■○88560592925667864363
Steps 33 to 36: Contradiction fills r9c8, column 8 reaches its count, and row 2 and the bulb under its last cell follow.

How do you choose a cell to test?

Choose a cell in a nearly decided line: one that will leave a single open cell empty, or fill a single one. Supposing the odd cell out forces every other open cell in the line, and those cells spread into other lines at once. A line with many open cells and a middling count rarely leads anywhere.

Prefer a cell far from its bulb when you suppose it filled, since that fills the most cells behind it, and a cell near its bulb when you suppose it empty, since that empties the most cells beyond it. Stop a test that has run eight steps without breaking a line and try another cell.

Common Mistakes

  • Keeping the marks from a failed test. Undo back to the position before the assumption, then place only the one cell the test proved.

  • Concluding from a test that did not break anything. If the assumption runs out of steps with every line still possible, it has told you nothing about the cell.

  • Testing before the easier steps are exhausted. A Reach Limit you missed is always cheaper than a what-if.

  • Stacking a second assumption on the first. If one test needs another inside it, pick a different cell; the grids here never require it.

Frequently Asked Questions

What do you do when you get stuck in a hard Thermometers puzzle?

Run one what-if. Pick an open cell in a line that needs nearly all of its open cells, suppose it empty, and follow the counts. If a row or column can no longer make its number, the cell is filled. On PencilGrid's Hard grids that is always enough.

Is a Contradiction step in Thermometers guessing?

No. A guess keeps the mark and hopes. A Contradiction step shows that one state of a cell makes some row or column impossible, using only certain steps, and so proves the other state. You place one cell and discard everything else from the test.

How many what-ifs does a hard Thermometers grid need?

Between one and six on PencilGrid, and two or three on average. In the 150 Hard grids of our generator's first run, 49 need exactly one and 7 need six. Grids that would need more are discarded before publication.

Sources

Sources last checked on 2026-11-15.

Written and checked by the maker of PencilGrid, a puzzle enthusiast and software engineer who also builds the generator and solver behind every grid on the site.

Every technique on this page is one the site's solver actually uses: puzzles are generated offline, checked for a single solution, and graded by the hardest step they need. How PencilGrid puzzles are made →

More Thermometers Pages

Related puzzles: Nonogram · Binairo · Star Battle

Keep Learning