Light Them All: how to solve a lights puzzle
In a lights puzzle every switch flips its own light and the lights next to it, so fixing one square breaks its neighbours. It feels like chasing your own tail, but there is a method that always works, and it rests on two facts: the order of the presses never matters, and pressing the same switch twice does nothing.
The rules, as the app states them
Flip switches until every light is on.
- Tap a light to flip it. Its neighbors above, below, left and right flip too.
- A lit light goes dark and a dark one lights up. Diagonals are never affected.
- The order does not matter, and tapping the same light twice cancels out.
What a lights puzzle is
A grid of lights, some on and some off. Pressing one flips it and its orthogonal neighbours. The genre became popular through handheld electronic toys in the 1990s, where the aim was to switch everything off. Mathematicians had already studied it on paper: in 1989 Klaus Sutner proved that from a completely dark grid of any size you can always light every square, which is why it is also known as the all-ones problem.
In Light Them All the aim is that version: every light on. The reasoning is the same either way round.
The rules in detail
Tap a light and it changes state, together with the lights directly above, below, left and right of it. Diagonals are never affected.
- A switch in the middle of the panel changes five lights. On an edge it changes four, and in a corner only three: there is no wrapping round to the other side.
- The tapped light itself always changes. You cannot flip the neighbours and leave the centre alone.
- The level is solved the moment every light is on, whatever you pressed to get there.
Two counters sit above the panel: how many lights are lit, and how many presses you have made. In levels with a limit, the second one reads like 3 / 6 presses, and every tap counts, including the ones that undo each other. When you run out, use Undo or Restart.
Where to start: the answer is a set, not a sequence
Each press flips a fixed group of lights, and a light only cares about how many times it was flipped: an odd number changes it, an even number leaves it as it was. It follows that:
- Pressing A then B gives the same panel as B then A.
- Pressing the same switch twice is the same as not pressing it.
So a solution is simply a list of which switches get pressed once. Every other switch is not pressed at all. On a 3×3 panel there are 512 such lists and exactly one of them lights everything. You are not looking for a clever sequence of moves. You are looking for that list.
Four techniques
1. Count the flips each light needs
A dark light must be flipped an odd number of times, a lit one an even number (zero counts). Only the switch on that square and the ones touching it can do it. Corners are the place to look: a corner light answers to just three switches, so a dark corner means one or all three of them are in the solution, and a lit corner means none or exactly two.
2. Chase the lights
Work from the top row down. For every dark light in the top row, press the switch directly below it. It flips that light and nothing else in its row. When the top row is fully lit, do the same for the second row using the third, and so on. At the end, all the damage is collected in the bottom row.
3. Read the bottom row
What is left in the bottom row tells you which top-row switches were missing. Press those, chase again, and the panel is solved. For a 3×3 panel:
| Dark in the bottom row | Press in the top row |
|---|---|
| Left only | Left and middle |
| Middle only | All three |
| Right only | Middle and right |
| Left and middle | Right |
| Left and right | Left and right |
| Middle and right | Left |
| All three | Middle |
On wider panels the idea is the same without a table to memorise: once the top row is chosen, the chase decides everything else. Four columns give 16 possible top rows and five columns give 32.
4. Play it once, then count
The chase is reliable but wasteful: it often presses the same switch twice. Note every switch you pressed an odd number of times. That list is a solution with nothing wasted. Restart and press only those.
A 3×3 example, press by press
Four lights are lit: the middle and right of the top row, the right of the middle row and the left of the bottom row.
- Chase the top row. Only its left light is dark. Press the switch below it: middle row, left. It flips that square, the one above, the one below and the one to its right. The top two rows are now fully lit and the bottom row is fully dark.
- Chase the middle row. Nothing is dark in it, so there is nothing to press.
- Read the bottom row. All three are dark. The table says: press the middle of the top row.
- Chase again. That press leaves the whole top row dark. Press the three switches of the middle row, left to right. After the third one every light is on.
That took five presses. Now count: the left switch of the middle row was pressed twice, so it cancels out. What remains is top middle, centre and middle right. Restart, press those three in any order, and the panel is solved in three presses. On a 3×3 no shorter answer exists, because there is only one list that works.
You can check it with technique 1. The top left corner starts dark and answers to three switches: itself, the one to its right and the one below. Only one of them, top middle, is in the solution. One flip: dark becomes lit.
Common mistakes
- Tapping the dark lights themselves. It lights the one you were looking at and darkens up to four others. The chase works because it presses below the dark light.
- Undoing with new presses. If you regret a tap, tapping it again restores the panel but costs two presses. With a limit, use Undo.
- Chasing inside a tight limit. Do the chase in your head or on paper, cancel the pairs, and only then press.
How the difficulty grows in the app
Light Them All has 120 levels. The two tutorials are 2×2 panels: one that a single tap solves and one that starts completely dark. Easy levels are 3×3 and 3×4 and need two to five presses. The first ones let you press as much as you like, and a limit with two or three spare presses arrives later. Medium levels are 3×3, 4×4 and 4×5, always with a limit and one or two presses to spare. Hard levels go up to 5×5, need between six and twelve presses, and the limit is the exact minimum.
A hint works out the shortest solution from the panel as it stands, tells you how many presses it takes and highlights one of them. If the presses you have left are no longer enough, it tells you that too, with both numbers.
For the opposite kind of puzzle, where the order of your moves is everything, try Program the Robot, or see the whole collection.
Frequently asked questions
Can every lights puzzle be solved?
Not on every size. On 3×3 panels every arrangement of lights can be solved, and in exactly one way. On 4×4 only one arrangement in sixteen can, and on 5×5 one in four. The levels in Thinking Games are built by pressing switches on a fully lit panel, so they can always be solved.
Does the order of the presses matter?
No. Each light only depends on whether it was flipped an odd or even number of times, so any order of the same presses gives the same panel.
How do I solve a lights puzzle in the fewest moves?
Never press a switch twice. Solve it by chasing the lights, write down the switches you pressed an odd number of times, and press only those. On 3×3 that is always the minimum. On 4×4 and 5×5 several lists work, and they are not all the same length.
Is lighting every light different from switching them all off?
Only in what you call the goal. Swap the words lit and dark and every technique here applies unchanged.





