💡 Lights out

A lights-out puzzle in which pressing a button switches the square between itself and the squares above, below, right and left. Success is achieved when all the lights are turned off! Mathematically interesting puzzle game.

number of moves (in go, shogi, etc.)
0
Best record
-

Clear! Lights out successful!

way of playing (a game)

  • Clicking on a yellow square (light on) toggles between that square and up/down/left/right
  • When all squares are darkened (light off) they are clear.
  • Highlight recommended moves with "hints"
  • Difficulty can be adjusted by size selection (3x3 is easiest)

What is Lights Out?

Lights Out is a mathematical logic puzzle game where every square on the grid can be either on or off, and your objective is to turn off all illuminated lights. The unique mechanic is that pressing any button toggles not just that square, but also all directly adjacent squares (up, down, left, right). This creates a cascade of interdependent effects that require strategic foresight. What makes Lights Out compelling is that every puzzle has a mathematical solution based on Boolean algebra, even if some configurations appear impossible at first glance.

How to Use

Start by examining the grid pattern and planning several moves ahead mentally before clicking. Click any lit square to toggle it and its neighbors simultaneously. Work methodically rather than randomly—many players find success by processing the grid systematically from one corner toward the opposite corner. Keep in mind that toggling the same square twice returns it to its original state, so avoid redundant moves. Some puzzles require you to activate seemingly unrelated squares to create the correct combination of toggles that extinguish all lights.

Use Cases

Lights Out serves several practical purposes:
• Train logical reasoning by solving puzzles requiring multi-step planning
• Understand mathematical principles underlying toggle systems and Boolean logic
• Build problem-solving confidence through puzzle progression
• Develop patience and systematic thinking for complex challenges
• Explore the mathematical elegance of how simple rules create complex interactions
• Enjoy meditative, screen-based mental exercise without time pressure

Tips & Insights

The game is rooted in Gaussian elimination mathematics—essentially solving a system of linear equations where each button is a variable. Puzzles that seem unsolvable often teach you about the mathematical limits of the system itself. Notice that the order of button presses rarely matters; toggling button A then B produces the same result as B then A. Corner squares are strategically valuable since they affect fewer neighbors, giving you more control. Some experienced players can solve any configuration by identifying essential presses and working backward from the goal.

Frequently Asked Questions

What are the rules?

Clicking on a square toggles the light and dark of that square and the adjacent squares above, below, right, and left. Success is achieved when all squares are unlit.

Are the puzzles different each time?

Yes, the "New Puzzle" button will generate a new puzzle. Only puzzles that can be solved without fail will be generated.

Can I change the difficulty level?

You can choose from three sizes: 3 x 3 (9 squares), 4 x 4 (16 squares), and 5 x 5 (25 squares).

Is there a hint function?

The "hint" button highlights one square to press.

Does the game save my progress?

The game doesn't automatically save between sessions, but you can start over anytime from the menu. Each puzzle resets when you refresh the page, allowing you to practice the same challenge multiple times to improve your strategy.

What's the fastest way to solve a puzzle?

There's usually a unique mathematical solution for each puzzle configuration, but finding it requires trial and error or pattern recognition. Try pressing corners and edges first, as they affect fewer squares and give you more strategic control.

Can I solve every puzzle configuration?

Most random configurations are solvable, but the mathematics of the Lights Out puzzle means some patterns may not have a solution. The game typically generates solvable puzzles, so if you're stuck, try a different approach or restart.

How many puzzles are available?

The game generates a new random puzzle each time, providing endless variations. With different difficulty levels, you'll have infinite unique challenges to solve.

What happens if I press all buttons?

Pressing all buttons will toggle every square multiple times, likely leaving lights in a different state. It's a valid move but usually not an efficient strategy for winning the game.

Is there a time limit for solving?

There's no time pressure in Lights Out, so you can take as long as you need to solve each puzzle. This allows you to think strategically and practice pattern recognition without stress.