Lights Out Game

Lights Out Animation

 Tutorial 

Lights Out


The game consists of a 5 by 5 grid of lights. When the game starts, a random number or a stored pattern of these lights is switched on. Pressing any of the lights will toggle it and the four adjacent lights. The goal of the puzzle is to switch all the lights off, preferably in as few button presses as possible. If a light is on, it must be toggled an odd number of times to be turned off. If a light is off, it must be toggled an even number of times (including none at all) for it to remain off. Several conclusions are used for the game's strategy. Firstly, the order in which the lights are pressed does not matter, as the result will be the same. Secondly, in a minimal solution, each light needs to be pressed no more than once, because pressing a light twice is equivalent to not pressing it at all.

Light chasing


"Light chasing" is a method similar to Gaussian elimination which always solves the puzzle (if a solution exists), although with the possibility of many redundant steps. In this approach, rows are manipulated one at a time starting with the top row. All the lights are disabled in the row by toggling the adjacent lights in the row directly below. The same method is then used on the consecutive rows up to the last one. The last row is solved separately, depending on its active lights. Corresponding lights (see table below) in the top row are toggled and the initial algorithm is run again, resulting in a solution

Shortcuts


Action Key
Hint h
Reset r
Quick Help q
Restart Ctrl

Hint Table


Bottom Top
O---O OO---
-O-O- O--O-
OOO-- -O---
--OOO ---O-
O-OO- ----O
-OO-O O----
OO-OO --O--

Mathematics


If you LOVE math, look at this paper from Olson and Turning Lights Out with Linear Algebra ;-)

Reference


Lights Out (game)

Track-1 : A New Beginning - Bensound.com

Track-2 : Happiness - Bensound.com

Track-3 : Buddy - Bensound.com

Track-4 : Cute - Bensound.com

Track-5 : Tenderness - Bensound.com