fbpx
Wikipedia

Lights Out (game)

Lights Out is an electronic game released by Tiger Electronics in 1995.[1] 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 adjacent lights. The goal of the puzzle is to switch all the lights off, preferably in as few button presses as possible.[1][2]

Selecting a square changes it and the surrounding squares.

Merlin, a similar electronic game, was released by Parker Brothers in the 1970s with similar rules on a 3 by 3 grid. Another similar game was produced by Vulcan Electronics in 1983 under the name XL-25. Tiger Toys also produced a cartridge version of Lights Out for its Game com handheld game console in 1997, shipped free with the console.

A number of new puzzles similar to Lights Out have been released, such as Lights Out 2000 (5×5 with multiple colors), Lights Out Cube (six 3×3 faces with effects across edges), and Lights Out Deluxe (6×6).[1][2]

Inventors

Lights Out was created by a group of people including Avi Olti, Gyora Benedek, Zvi Herman, Revital Bloomberg, Avi Weiner and Michael Ganor. The members of the group together and individually also invented several other games, such as Hidato, NimX, iTop and many more.

Gameplay

 
Lights to toggle to turn off a fully-lit 5×5 board [3]

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.[1][4]

Mathematics

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.[5] 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.[5]

In 1998, Marlow Anderson and Todd Feil used linear algebra to prove that not all configurations are solvable and also to prove that there are exactly four winning scenarios, not including redundant moves, for any solvable 5×5 problem.[6] The 5×5 grid of Lights Out can be represented as a 25x1 column vector with a 1 and 0 signifying a light in its on and off state respectively. Each entry is an element of Z2, the field of integers modulo 2. Anderson and Feil found that in order for a configuration to be solvable (deriving the null vector from the original configuration) it must be orthogonal to the two vectors N1 and N2 below (pictured as a 5×5 array but not to be confused with matrices).

 

In addition, they found that N1 and N2 can be used to find three additional solutions from a solution, and that these four solutions are the only four solutions (excluding redundant moves) to the starting given configuration. These four solutions are X, X + N1, X + N2, and X + N1 + N2 where X is a solution to the starting given configuration.[6] An introduction into this method was published by Robert Eisele.[7]

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.[2][6][8] 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.[8]

Bottom row is Toggle on top row
⬜⬜⬜⬛⬛ ⬛▣⬛⬛⬛
⬜⬜⬛⬜⬜ ⬛⬛▣⬛⬛
⬜⬛⬜⬜⬛ ⬛⬛⬛⬛▣
⬜⬛⬛⬛⬜ ▣▣⬛⬛⬛
⬛⬜⬜⬛⬜ ▣⬛⬛⬛⬛
⬛⬜⬛⬜⬛ ▣⬛⬛▣⬛
⬛⬛⬜⬜⬜ ⬛⬛⬛▣⬛

Tables and strategies for other board sizes are generated by playing Lights Out with a blank board and observing the result of bringing a particular light from the top row down to the bottom row.

Further results

Once a single solution is found, a solution with the minimum number of moves can be determined through elimination of redundant sets of button presses that have no cumulative effect.[6][8] If the 5×5 puzzle is unsolvable under legal game creation, two leftmost lights on the bottom row will remain on when all other lights have been turned off.

Existence of solutions has been proved for a wide variety of board configurations, such as hexagonal,[9] while solutions to n-by-n boards for n≤200 have been explicitly constructed.[10]

There exists a solution for every N×N case. It is solvable on any undirected graph, where clicking on one vertex flips its value and its neighbours. More generally if the action matrix is symmetric then its diagonal is always solvable.[11]

See also

References

  1. ^ a b c d 'Beyond Tetris' - Lights Out, Tony Delgado, GameSetWatch, January 29, 2007. Accessed on line October 18, 2007.
  2. ^ a b c Lights Out, Jaap's Puzzle Page. Accessed on line October 18, 2007.
  3. ^ "Programming Puzzle: Lights Toggle". 13 December 2020.
  4. ^ "Archive of Interesting Code". www.keithschwarz.com. Retrieved 2020-06-12.
  5. ^ a b Weisstein, Eric W. "Lights Out Puzzle". MathWorld.
  6. ^ a b c d Marlow Anderson, Todd Feil (1998). (PDF). Mathematics Magazine. 71 (4): 300–303. doi:10.1080/0025570X.1998.11996658. Archived from the original (PDF) on 15 August 2014.
  7. ^ Eisele, Robert (2018-07-30). "LightsOut Solution using Linear Algebra". Retrieved 2018-07-30. {{cite magazine}}: Cite magazine requires |magazine= (help)
  8. ^ a b c , Matthew Baker.
  9. ^ unknown (20 Nov 2010). "Lights out game on hexagonal grid". Retrieved 30 November 2010.
  10. ^ Jim Fowler (21 July 2008). "Solutions to Lights Out". Jim Fowler blog. Retrieved 30 November 2010.
  11. ^ Igor Minevich (2012). "Symmetric Matrices over F_2 and the Lights Out Problem". arXiv:1206.2973 [math.RA].

External links

  • Online version

lights, game, this, article, about, 1995, electronic, game, 2004, computer, game, dark, fall, lights, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, ch. This article is about the 1995 electronic game For the 2004 computer game see Dark Fall II Lights Out This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Lights Out game news newspapers books scholar JSTOR November 2010 Learn how and when to remove this template message Lights Out is an electronic game released by Tiger Electronics in 1995 1 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 adjacent lights The goal of the puzzle is to switch all the lights off preferably in as few button presses as possible 1 2 Selecting a square changes it and the surrounding squares Merlin a similar electronic game was released by Parker Brothers in the 1970s with similar rules on a 3 by 3 grid Another similar game was produced by Vulcan Electronics in 1983 under the name XL 25 Tiger Toys also produced a cartridge version of Lights Out for its Game com handheld game console in 1997 shipped free with the console A number of new puzzles similar to Lights Out have been released such as Lights Out 2000 5 5 with multiple colors Lights Out Cube six 3 3 faces with effects across edges and Lights Out Deluxe 6 6 1 2 Contents 1 Inventors 2 Gameplay 2 1 Mathematics 2 2 Light chasing 2 3 Further results 3 See also 4 References 5 External linksInventors EditThis section needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed November 2010 Learn how and when to remove this template message Lights Out was created by a group of people including Avi Olti Gyora Benedek Zvi Herman Revital Bloomberg Avi Weiner and Michael Ganor The members of the group together and individually also invented several other games such as Hidato NimX iTop and many more Gameplay Edit Lights to toggle to turn off a fully lit 5 5 board 3 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 1 4 Mathematics Edit 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 5 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 5 In 1998 Marlow Anderson and Todd Feil used linear algebra to prove that not all configurations are solvable and also to prove that there are exactly four winning scenarios not including redundant moves for any solvable 5 5 problem 6 The 5 5 grid of Lights Out can be represented as a 25x1 column vector with a 1 and 0 signifying a light in its on and off state respectively Each entry is an element of Z2 the field of integers modulo 2 Anderson and Feil found that in order for a configuration to be solvable deriving the null vector from the original configuration it must be orthogonal to the two vectors N1 and N2 below pictured as a 5 5 array but not to be confused with matrices N 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 0 1 1 1 0 N 2 1 0 1 0 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 0 1 0 1 displaystyle N 1 begin pmatrix 0 amp 1 amp 1 amp 1 amp 0 1 amp 0 amp 1 amp 0 amp 1 1 amp 1 amp 0 amp 1 amp 1 1 amp 0 amp 1 amp 0 amp 1 0 amp 1 amp 1 amp 1 amp 0 end pmatrix N 2 begin pmatrix 1 amp 0 amp 1 amp 0 amp 1 1 amp 0 amp 1 amp 0 amp 1 0 amp 0 amp 0 amp 0 amp 0 1 amp 0 amp 1 amp 0 amp 1 1 amp 0 amp 1 amp 0 amp 1 end pmatrix In addition they found that N1 and N2 can be used to find three additional solutions from a solution and that these four solutions are the only four solutions excluding redundant moves to the starting given configuration These four solutions are X X N1 X N2 and X N1 N2 where X is a solution to the starting given configuration 6 An introduction into this method was published by Robert Eisele 7 Light chasing Edit 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 2 6 8 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 8 Bottom row is Toggle on top row Tables and strategies for other board sizes are generated by playing Lights Out with a blank board and observing the result of bringing a particular light from the top row down to the bottom row Further results Edit Once a single solution is found a solution with the minimum number of moves can be determined through elimination of redundant sets of button presses that have no cumulative effect 6 8 If the 5 5 puzzle is unsolvable under legal game creation two leftmost lights on the bottom row will remain on when all other lights have been turned off Existence of solutions has been proved for a wide variety of board configurations such as hexagonal 9 while solutions to n by n boards for n 200 have been explicitly constructed 10 There exists a solution for every N N case It is solvable on any undirected graph where clicking on one vertex flips its value and its neighbours More generally if the action matrix is symmetric then its diagonal is always solvable 11 See also EditBerlekamp switching game Peg solitaire Group theoryReferences Edit a b c d Beyond Tetris Lights Out Tony Delgado GameSetWatch January 29 2007 Accessed on line October 18 2007 a b c Lights Out Jaap s Puzzle Page Accessed on line October 18 2007 Programming Puzzle Lights Toggle 13 December 2020 Archive of Interesting Code www keithschwarz com Retrieved 2020 06 12 a b Weisstein Eric W Lights Out Puzzle MathWorld a b c d Marlow Anderson Todd Feil 1998 Turning Lights Out with Linear Algebra PDF Mathematics Magazine 71 4 300 303 doi 10 1080 0025570X 1998 11996658 Archived from the original PDF on 15 August 2014 Eisele Robert 2018 07 30 LightsOut Solution using Linear Algebra Retrieved 2018 07 30 a href Template Cite magazine html title Template Cite magazine cite magazine a Cite magazine requires magazine help a b c Solving Lights Out Matthew Baker unknown 20 Nov 2010 Lights out game on hexagonal grid Retrieved 30 November 2010 Jim Fowler 21 July 2008 Solutions to Lights Out Jim Fowler blog Retrieved 30 November 2010 Igor Minevich 2012 Symmetric Matrices over F 2 and the Lights Out Problem arXiv 1206 2973 math RA External links EditOnline version Retrieved from https en wikipedia org w index php title Lights Out game amp oldid 1119541916, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.