Lights Out Puzzle

The classic puzzle game where you must turn off all the lights. Challenge your logic and problem-solving skills!

This puzzle is guaranteed to be solvable. All 5×5 grids are always solvable.
Classic Mode
Timed Mode
Challenge Mode
0
Moves
00:00
Time
25
Lights On
1
Level
Solving puzzle...
Congratulations!

You've solved the puzzle in 0 moves and 00:00!

Click "New Game" to play again or try a harder level.

About Lights Out Puzzle

Lights Out is an electronic puzzle game released by Tiger Electronics in 1995. The game consists of a grid of lights that are either on or off. Pressing any light will toggle it and its adjacent lights. The goal is to turn off all the lights, preferably in as few button presses as possible.

How to Play: Click on any light to toggle its state (on/off) and the state of its immediate neighbors (up, down, left, right). Your goal is to turn off all the lights on the grid. The game ends when all lights are off.

Solvability of Lights Out Puzzles

Important Mathematical Fact: Not all Lights Out puzzles are solvable! The solvability depends on the grid size:

  • Odd-sized grids (3×3, 5×5, 7×7, 9×9): 100% of puzzles are solvable
  • Even-sized grids (4×4, 6×6, 8×8): Only 75% of puzzles are solvable

Our game generator ensures that all puzzles it creates are solvable. However, if you manually create a puzzle or get stuck, you can use the "Check if Puzzle is Solvable" button to verify whether the current configuration has a solution.

Game Strategies & Tips

Pattern Recognition
Look for patterns in the light configuration. Some patterns are easier to solve than others, and recognizing them can help you solve the puzzle faster.
Work from Corners
Start by solving the corners and edges first. This reduces the complexity of the center section, making it easier to solve the entire grid.
Use Undo Feature
Don't be afraid to use the undo button to backtrack from moves that don't seem to be working. Sometimes you need to try different approaches.
Systematic Approach
Work row by row from top to bottom. Solve each row completely before moving to the next one. This methodical approach often leads to success.

Mathematical Background

The Lights Out puzzle can be represented mathematically using linear algebra over the finite field GF(2). Each light configuration corresponds to a vector, and each possible move corresponds to another vector. Solving the puzzle involves finding a linear combination of move vectors that equals the initial configuration vector.

Grid Size Possible Configurations Always Solvable? Solvable Percentage Minimum Moves (Worst Case)
3×3 512 Yes 100% 9
4×4 65,536 No 75% 16
5×5 33,554,432 Yes 100% 25
6×6 68,719,476,736 No 75% 36
7×7 562,949,953,421,312 Yes 100% 49
9×9 1.93×10²⁴ Yes 100% 81

Game Variations

Classic Mode: The standard Lights Out game with a square grid. All puzzles are solvable for odd-sized grids (3×3, 5×5, 7×7, etc.).

1

Timed Mode: Race against the clock to solve the puzzle as quickly as possible. Try to beat your best time!

2

Challenge Mode: Start with a predefined challenging pattern that requires strategic thinking to solve.

3

Custom Grids: Create your own grid size or pattern for an extra challenge or to practice specific configurations.

Frequently Asked Questions

For square grids, all puzzles are solvable for grids with odd dimensions (3×3, 5×5, 7×7, etc.). For even-sized grids (4×4, 6×6, etc.), only 3/4 of the possible puzzles are solvable. Our game generator ensures that all puzzles it creates are solvable.

The minimum number of moves varies depending on the starting configuration. For a 5×5 grid, the worst-case scenario requires 25 moves (pressing every light once). However, most puzzles can be solved in fewer moves. The "Solve" button will show you an optimal solution.

In Lights Out, the order of moves doesn't matter because the toggles are commutative. Toggling light A then light B has the same effect as toggling light B then light A. However, some sequences may be more efficient than others in terms of the total number of moves.

Yes! Common strategies include: 1) The "chase the lights" method where you work row by row from top to bottom, 2) Looking for patterns and symmetries, 3) Using linear algebra techniques (for mathematically inclined players), and 4) Memorizing solutions for common patterns. The game includes a hint system to help you learn these strategies.

Absolutely! Lights Out is an excellent exercise for logical thinking, pattern recognition, and problem-solving skills. It requires planning ahead and understanding cause-and-effect relationships. Regular play can help improve cognitive flexibility and strategic thinking abilities.