Lights Out — Classic Neon Toggle Puzzle

Tap a tile to flip it and its four neighbours. Turn every light off on a 3×3, 5×5, or 7×7 board. Guaranteed solvable, neon glow, free in browser.

#classic #logic #single-player #brain-teaser

How to play

Click or tap a tile. It toggles itself plus the 4 orthogonal neighbours (up, down, left, right). Turn every light off in as few moves as possible. Pick 3×3, 5×5, or 7×7 from the chips.

About Lights Out — Classic Neon Toggle Puzzle

Lights Out is a deceptively simple electronic puzzle released by Tiger Electronics in 1995. The original handheld used a 5×5 grid of buttons that lit up; pressing one toggled itself plus its four orthogonal neighbours. The goal was to turn every light off — and despite the trivial rules, the math behind it is rich enough to be taught in linear algebra courses today.

Each move you make is an XOR over the affected cells, so the order you press buttons in doesn't matter — only the *parity* of presses does. That property lets a computer solve any 5×5 board in 25 steps or fewer using Gaussian elimination over GF(2), but solving it by feel is much trickier than that makes it sound.

This version offers three sizes — 3×3 for warm-ups, 5×5 for the classic, and 7×7 for serious puzzlers. Every board is generated to be solvable: we start from all-off and "press" random cells, which guarantees the resulting puzzle has a solution. Your best move count per size is saved locally so you can chase a personal record.

Tips & strategy

  • Solve the top row first using only buttons in the second row — this is the standard "chase the lights" method.
  • Once the top is dark, work down row by row: each lit cell in row N can only be turned off by pressing the cell directly below it in row N+1.
  • When you reach the bottom row, you may need to go back and "seed" specific cells in row 1; there are only seven combinations to try on a 5×5.
  • Pressing the same cell twice is the same as never pressing it — order is irrelevant, so think in terms of which cells to press, not when.
  • On a 7×7, focus on symmetry: many positions have mirrored solutions that halve your search.
  • Corner cells flip 3 lights, edges flip 4, and interior cells flip 5 — corners are your most surgical move.
  • If you get stuck, restart. A fresh random puzzle on the same size is often the fastest way to feel the patterns again.

Frequently asked questions

Is every Lights Out puzzle solvable?

On a standard 5×5 board, only about a quarter of all random starting positions are solvable. This game generates puzzles by pressing random cells from an all-off state, which guarantees every puzzle has at least one solution.

What is the minimum number of moves?

It depends on the board. On 5×5 the optimum for most random positions is between 6 and 15 moves. We don't display the theoretical minimum, but your personal best per size is stored locally.

Does the order of presses matter?

No. Pressing A then B is identical to pressing B then A — and pressing the same cell twice cancels out. Only the *set* of pressed cells matters.

Why does my best score not transfer between board sizes?

3×3, 5×5 and 7×7 are different puzzles with different theoretical minimums, so each size has its own best record.

Can I get a hint?

Not in this version — Lights Out is small enough that experimenting is part of the fun. If you're stuck on a board, hit "New puzzle" and try a fresh layout.

Who invented Lights Out?

The electronic puzzle game Lights Out was released in 1995 by Tiger Electronics. Earlier mathematical work by Don Pelletier (1980s) studied the same kind of toggle puzzle on grids.