How to Play Switch Puzzle (Lights Out)

Switch Puzzle (internationally recognized as Lights Out) is an electronic brain-teaser game invented in 1995 by Tiger Electronics. Featuring a grid of interconnected electrical nodes, the puzzle challenges players to illuminate all switches from an initially disordered state.

  1. The Core Inversion Rule: Clicking or tapping any switch toggles its current state:
    • If the switch is OFF, it turns ON.
    • If the switch is ON, it turns OFF.
  2. Orthogonal Cross Propagation: In addition to toggling itself, tapping a switch simultaneously inverts the states of its four immediate orthogonal neighbors (North, South, East, and West). Border and corner switches affect fewer neighbors accordingly.
  3. The Victory Condition: When every node on the grid is glowing green and powered ON, the circuit is completed and victory is awarded!

Mathematical Strategies for Solving Lights Out

Switch Puzzle is governed by linear algebra over the binary Galois field GF(2). Understanding its mathematical properties eliminates random button-mashing:

1. Commutativity and Idempotence

Because addition in binary arithmetic is equivalent to XOR:

2. The Light-Chasing Heuristic

A powerful systematic method known as "light-chasing" works row-by-row:

  1. Scan Row 1. If any node in Row 1 is OFF, press the switch directly below it in Row 2. This forces the node in Row 1 to turn ON.
  2. Repeat this process for Row 2, pressing switches in Row 3 to illuminate all dark nodes in Row 2.
  3. Continue downward until all rows except the final bottom row are fully illuminated.
  4. If the bottom row is not all ON, press specific top-row switches corresponding to known bottom-row defect lookup patterns, and chase the lights downward a second time to achieve total illumination!

Game Features

🧪 100% Guaranteed Solvability

Every level is scrambled via random valid toggles from the solved state, ensuring zero unwinnable dead ends.

📐 Multi-Grid Scalability

Switch seamlessly between 3x3 Casual, 4x4 Standard, and 5x5 Master matrix dimensions.

⚡ Neon Circuit Aesthetics

Luminous green glow effects, PCB trace styling, and metallic switch bezels rendered in 60 FPS.

🔊 Synthesized Audio Relays

Dynamic audio clicks and electrical power surges synthesized natively via the Web Audio API.

Frequently Asked Questions

Why does pressing a corner switch only affect two neighbors? +
Because corner switches only possess two adjacent orthogonal neighbors along the board perimeter, the toggle wave only travels into those two valid adjacent cells.
Is every randomly generated Lights Out board solvable? +
In arbitrary random configurations, only a fraction of states are mathematically solvable. However, in our game, every puzzle is generated backwards by applying random legal toggles from a solved board, guaranteeing that 100% of levels are solvable.
Can I play Switch Puzzle on mobile? +
Yes! The canvas adapts smoothly to touchscreen taps on smartphones and tablets with instant zero-lag response.