· 3 min read

Why every Click Out puzzle can be solved (and how we find the fewest moves)

The surprisingly simple maths behind Click Out: odd and even counts, why only some light patterns can be cleared, and how the app finds the true minimum number of moves.

Every puzzle in Click Out can be solved, and when you finish, the app tells you the fewest moves that could have done it. Neither of those is luck. Both come from a neat piece of maths that's easier than it sounds.

A tap is a switch

Tapping a light flips it and its neighbors above, below, left and right. Two things follow:

So solving a board means choosing a set of lights to tap. Nothing else.

Odd or even

Now look at a single light. It ends up dark if it gets flipped the right number of times: an odd number if it starts lit, an even number if it starts dark. The taps that flip it are the light itself and its neighbors.

That gives one small rule per light: "of these five tiles, an odd (or even) number must be tapped." A 5×5 board has 25 rules and 25 choices to make. Mathematicians call this a system of equations modulo 2, where you only care whether a count is odd or even.

Solving it like school algebra

You may remember solving two equations by subtracting one from the other to eliminate a variable. The same trick, Gaussian elimination, works here, with one twist: "subtracting" means flipping, since odd minus odd is even. A phone does it for a 7×7 board in well under a millisecond.

Not every pattern can be cleared

Here's the surprise. On some grids, certain combinations of taps change nothing at all: tap them all and every light flips an even number of times. Those "quiet" combinations mean some light patterns can never be cleared.

GridPatterns that can be clearedDifferent solutions per board
3×3, 7×7, DiamondAll of them1
Heart1 in 22
5×5, Triangle, Ring1 in 44
Circle1 in 1616

So a 5×5 board with random lights switched on can only be cleared one time in four. Picking lights at random would make three out of four puzzles impossible.

How Click Out guarantees a solution

Click Out builds puzzles backwards. It starts from a dark board and taps a random handful of different tiles. Since every tap can be undone by tapping again, tapping those same tiles clears the board. So every random puzzle has a solution by construction.

The hand-designed patterns in the library are checked by the same solver, and any that couldn't be cleared are rejected before they reach you.

Finding the fewest moves

The solver finds a solution. But on grids with several solutions, like the four on 5×5, they can have very different lengths. Click Out tries every one of them, adding each quiet combination to the first solution, and keeps the shortest. That's the optimal number on your results screen. It's the true minimum, not an estimate.

Your star rating compares against it: three stars for matching it, two for staying within twice it, one otherwise.

Hints use the same maths

The hint button runs the solver on your current board, not the starting one, and lights up one tap from an optimal solution. So a hint is useful even after a few wrong turns.

Prefer a method you can do in your head? Try the row-by-row chasing method.