The classic puzzle game where you must turn off all the lights. Challenge your logic and problem-solving skills!
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.
Important Mathematical Fact: Not all Lights Out puzzles are solvable! The solvability depends on the grid size:
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.
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 |
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.).
Timed Mode: Race against the clock to solve the puzzle as quickly as possible. Try to beat your best time!
Challenge Mode: Start with a predefined challenging pattern that requires strategic thinking to solve.
Custom Grids: Create your own grid size or pattern for an extra challenge or to practice specific configurations.
| Grid | Moves | Time |
|---|---|---|
| 5×5 | 8 | - |
| 7×7 | 28 | - |
| 9×9 | - | - |
| 4×4 | 4 | - |
| 6×6 | - | - |