Lights Out Puzzle

Lights Out Puzzle

Press lights to toggle their specified neighbors and turn every light off. A manually edited pattern might have no solution.

1. Create a solvable puzzle

Cross: pressed cell and orthogonal neighbors. Eight-neighbor: diagonals too. Off-board cells never flip.

Generation uses real presses to make a reachable board. The same seed, size, rule, and press count reproduce the same board.

2. Turn off the lights

Tab to a cell and use arrows to move focus. Enter, Space, or a tap presses it and toggles the specified neighbors.

14 lights on0 pressesIn progress

Applying an edited pattern makes it the new initial board and removes prior moves and seeded-generation provenance.

3. Solvability and press plan

Solvable. 7 presses are minimal, proven by checking 4 candidates. Matrix rank 23; 2 free variables.

The solver treats lights and presses as 0/1 values in GF(2) elimination. Press order does not affect the outcome. It never invents a hint for an unsolvable board.

4. Save and load

JSON contains the initial board, seed provenance, moves, and current board. Loading replays the game and checks consistency; failure leaves your current game intact.

Practice puzzle with seed 2532026 is ready.

Comments & questions

Lights Out Puzzle

Pressing a cell toggles it and its specified neighbors. The cross rule uses orthogonal neighbors; the eight-neighbor rule also includes diagonals. Off-board positions are ignored. Seeded puzzles are made by real presses on an all-off board, so they have a solution. A manually edited board can be impossible; a GF(2) system distinguishes that case from a verified minimum-click plan.

Key features

  • Exact edge-clipped toggles on 3×3, 4×4, and 5×5 boards with cross or eight-neighbor rules
  • Reproducible solvable boards from a seed and scramble press count
  • Edit individual lights to test even impossible configurations
  • GF(2) elimination for consistency and bounded enumeration of all free-variable solutions for minimum clicks
  • Hint, full press plan, arrow-key navigation, touch controls, undo, and reset
  • Local JSON save and load with initial board, seed provenance, moves, and current board checked by replay

How to use

  1. Choose the board size, toggle rule, seed, and scramble press count, then create a puzzle.
  2. Press cells to toggle the selected cell and its neighbors. Use Tab and arrows to focus cells, Enter or Space to press, or tap on mobile.
  3. Check whether the current board is solvable, show or apply a hint, and optionally reveal the full press plan.
  4. In edit mode, tapping changes just one cell. Apply the pattern as a new game; edited patterns may be unsolvable.
  5. Undo the last press or reset to the initial pattern. Saved JSON is replayed and verified before it replaces your game.

Use cases

  • Compare move sequences and minimum clicks for the same seeded puzzle
  • Draw a lighting pattern and check whether the rule can clear it
  • Explore how orthogonal and diagonal toggle rules change solutions

Frequently asked questions

Which lights change when I press a cell?

The cross rule toggles the pressed cell and its up, down, left, and right neighbors. The eight-neighbor rule adds all four diagonals. Edges and corners have fewer cells because off-board positions are ignored.

Are generated puzzles always solvable?

Yes. Generation applies seeded real presses to an all-off board, so repeating those presses clears it. This does not imply a uniform distribution of boards or difficulty.

Can a board I edit be unsolvable?

Yes. Editing changes one light without applying a legal press. If the GF(2) equations contain a contradictory row, the board is reported as unsolvable.

Is the shown press count really minimal?

For supported sizes and rules, the solver marks a minimum only when it has checked every free-variable solution under its enumeration cap. If that cap were exceeded, it would show a verified candidate without claiming minimality.

What do the hint and full plan mean?

The hint is the first cell in a verified set of presses that clears the current board. Toggle presses commute, so the plan's cells can be pressed in any order. No hint is invented for an unsolvable board.

Does this send my puzzle to a server?

No. The board, linear algebra, and JSON checks run in this browser tab. Files are downloaded or opened only when you request it.

Privacy

The board, seed, and move history stay in this browser tab. A local JSON file is written only when you request a save.

Related Tools

Sliding Tile PuzzleMinesweeper LabNumber Merge GameKakuro StudioFunction Graph WorkbenchAudio ABX Blind TestCard Sort StudyEvent Run of ShowChecklist RunnerKanban Project BoardMind Map WorkbenchArgument Map EditorTeam Skill MatrixCorpus ConcordancerTerminology Glossary ManagerCloze Worksheet MakerReversi BoardNonogram StudioTangram StudioCrossword BuilderWord Ladder GameWord Search StudioAnagram Word GameConnect Four BoardAttribute Trio PuzzleMaze WorkbenchLogic Grid Puzzle MakerPeg Solitaire BoardArithmetic Cage PuzzleSudoku StudioChess Tactics BoardProjectile Motion LabGeometry Construction LabEtymology Map ExplorerPronunciation Comparison StudioReading PacerPhonetic Transcription LabProbability Experiment LabPeriodic Trend LabAlgebra Balance LabPhonics Word BuilderSpaced Repetition CardsService Blueprint DesignerOrganization Chart EditorProject Risk RegisterHabit Progress TrackerProcess Swimlane DesignerResource Capacity SchedulerInventory Movement LedgerRanked Ballot CounterUsability Task RunnerRequirements TraceabilitySentence Structure LabTranslation Memory WorkbenchDictation PracticeFraction ManipulativesMolecule Structure ViewerGantt Dependency PlannerWeighted Decision MatrixRound Robin SchedulerMental age test · everyday attitude themesPast-life story test27-question Enneagram explorerKorean initials quizFocus Games · Numbers and Ink ColorsColor vision reference platesPitch Recognition PracticeNumber Memory PracticeMoving Target RecognitionScoreboardBingo Card GeneratorTruth or DareQuote of the DayPreference Tournament MakerRock Paper ScissorsRandom Seating PlanRandom Nickname GeneratorRandom Conversation QuestionsMouse TestTouchscreen TestMonitor TestRefresh Rate EstimateScreen and Display InformationKorean Business Number CheckLotto GeneratorLadder GameCompatibility CheckerRandom GeneratorPassword GeneratorMy IP AddressLunch PickerSpin the WheelMetronomeReaction Time TestBalance Game (Would You Rather)Personality Type TestDream DictionaryKeyboard Test
Explore all Life/Fun tools →Image/Media →Text/Convert →Dev Tools →