Lights Out

Turn every light off on solvable 3×3, 4×4 and 5×5 boards. Try a daily UTC puzzle, exact minimum-press practice hints, undo and local personal records.

Game settings

Settings take effect when you start a new game.

On this device

Games started
0
Completed
0
Best active time
—
Best moves
—

Local, unverified personal records only. No account, online leaderboard or cash prizes. Reloading the page starts a fresh game.

Your board

Active time
0:00
Moves
0
Run type
Standard

Choose your settings and start playing.

Press a light to toggle it and its up/down/left/right neighbors. Turn every light OFF. Arrow keys move focus; Enter or Space presses a light. ON/OFF labels make the board readable without relying only on color.

The initial minimum is computed exactly. A practice hint highlights one press from a shortest remaining press set, not a guess. Undo counts as another move. Hints and undo exclude the run from best-record updates.

Rules and controls

Turn every light off

Pressing a light toggles that cell and its up, down, left and right neighbors. Edges have fewer neighbors; diagonals do not change. The goal is an entirely OFF board. ON/OFF text and accessible cell labels supplement color. Use taps, mouse clicks, or arrow keys with Enter and Space while focus is inside the board.

Choose a 3 × 3, 4 × 4 or 5 × 5 board. Starting boards are generated by applying presses to an all-OFF board, so they are solvable and not already finished. The displayed initial minimum is exact for the standard cross-toggle rule. Binary Gaussian elimination finds the valid press sets; enumerating the small nullspace selects a set with the fewest presses. Repeated presses on one cell cancel in pairs, and press order does not change the final result.

Minimum-route hint highlights one press from an exact shortest remaining press set and marks Practice. Undo also marks Practice, reverses the last press and counts as another move. Both exclude the run from best-time and best-move updates. Restart restores the exact initial board, clears moves and active time, and retains any practice flag. The most recent 2,000 presses can be undone before completion.

Daily boards use UTC date, size and generator version. The displayed board ID identifies the initial pattern. A game in progress keeps its date across midnight; start a new daily board for the next date. The active timer begins on the first valid press. Pause hides the board and stops the clock; leaving the tab pauses automatically and requires explicit resume.

New game and Restart ask before discarding an attempt with moves or assistance. Best time and best moves are independent personal milestones, not necessarily from the same game or an equivalent initial pattern. Records stay in this browser, are unverified and have no prizes or online ranking. The board itself is not saved across reloads.

Lights Out FAQ

Can a generated board be impossible?

No. It is created by valid presses from the goal board, and pressing that same set again returns to the goal. The exact solver also checks solvability. This does not mean every arbitrary pattern on every board size would be solvable.

Is the minimum just an estimate?

No. For these 3 × 3 through 5 × 5 cross-toggle boards, the solver enumerates every binary solution from the reduced linear system and chooses minimum press count. The initial target stays fixed; a practice hint computes the exact remaining minimum from your current board.

Do I have to follow the hinted presses in order?

No. The toggles commute, so the presses in a solution set can be applied in any order. Pressing a suggested cell from a minimum set reduces the exact remaining minimum by one. Using a hint still makes the attempt a practice run.

Why did Undo increase my move count?

The counter records actions, including an undo. Undo restores the preceding light pattern, not a lower action count. It also marks Practice, so it cannot improve an unassisted best record.

What happens to records or a shared result?

Records are local and separated by size and random/daily mode; daily slots retain one date per size. Copy result uses the site's ordinary button and shares a text summary, not an online score. Clearing this game's records asks first and keeps other games and the current board. Blocked storage does not prevent play, but records may reset.