Skip to content
vladier

Light Switch Puzzle

Tapping a light flips it and the lights next to it. Turn them all off.

Published Nov 9, 2026

How to play

The board is a grid of lights. Some are on, some are off. Tap a light and it switches, along with the lights directly above, below, left and right of it. Lights on the edge have fewer neighbors, and a corner light only has two. Your goal is to switch every light off.

On a computer, click a light, or use the arrow keys to move the white frame and press Space or Enter. Ctrl+Z undoes your last press and H shows a hint.

  • Sizes run from 3×3 (a quick warm-up) to 7×7 (49 lights, a real challenge).
  • Moves counts your presses. Tick Show the fewest moves needed to see the shortest number of presses that would finish the board from where you are now.
  • Hint rings one light that is part of the shortest answer. Press it, or look for the reason it works.
  • Daily loads a 5×5 board that is the same for everyone today.

Two facts that make it easier

Order does not matter

Pressing A then B gives exactly the same board as pressing B then A. So you can think of a solution as a set of lights to press, without worrying about the order.

Pressing twice does nothing

A second press on the same light undoes the first one. That means no light ever needs to be pressed more than once in a shortest solution. If you notice you pressed the same light twice, those two presses were wasted.

Strategy: chase the lights down

The most reliable method is called chasing. Start at the top row. For every light that is on in that row, press the light directly below it in the second row. This turns the top light off without touching the rest of the top row. Then do the same for the second row, pressing in the third row, and carry on down the board.

When you reach the bottom, every row is dark except possibly the last one. On some boards you are already done. If not, the pattern left in the bottom row tells you which lights to press in the top row before chasing a second time. For the 5×5 board, counting lights from the left:

  • Bottom row lights 1 and 5 on: press top lights 4 and 5.
  • Lights 2 and 4 on: press top lights 2 and 5.
  • Lights 1, 2 and 3 on: press top light 2.
  • Lights 3, 4 and 5 on: press top light 4.
  • Lights 1, 3 and 4 on: press top light 5.
  • Lights 2, 3 and 5 on: press top light 1.
  • Lights 1, 2, 4 and 5 on: press top light 3.

After those top presses, chase again from the top and the board goes dark. Chasing is not always the shortest route, so try to beat the fewest-moves count once you have the method down.

Why some boards have no answer

If you set up lights by hand, some patterns can never be switched off. It depends on the board size. On 3×3, 6×6 and 7×7 every pattern of lights can be cleared, and each has exactly one shortest set of presses. On 4×4 only 1 in 16 patterns can be cleared, and on 5×5 only 1 in 4. A single light in the corner of a 5×5 board, for example, has no solution. The puzzles on this page avoid that problem because each one starts from a dark board and is scrambled with real presses.

The same idea is why the fewest-moves count can be worked out exactly. Each light is pressed either once or not at all, so the whole board is a set of yes-or-no equations, which a computer can solve in a moment.

More puzzles like this

If you like puzzles where every move shifts several things at once, try the Sliding Puzzle. For pure logic on a grid, Nonogram puzzles reveal a picture as you solve them.

Questions

Can every puzzle here be solved?

Yes. Each board is made by pressing random lights on a dark board, so pressing those same lights again always turns it off. The game also checks the board with a solver before you see it.

How is the fewest number of moves worked out?

Each light can be pressed zero times or once, since two presses cancel out. That turns the puzzle into a system of equations where 1 + 1 = 0, and the game solves that system to find the shortest answer.

Does the order of my presses matter?

No. The final board only depends on which lights you pressed an odd number of times, so you can press them in any order.

Do hints or undo affect my best score?

Undo just takes back your last press. A solve that used a hint is not saved as a best, but you still see how close you came to the fewest possible moves.

What is the daily puzzle?

A 5×5 board built from the date, so everyone who opens the page that day gets the same lights. It is a good one to compare scores with friends.