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.

Lights Out Animation

Simple Game Just For Fun :bowtie::see_no_evil:






Changes and improvements are more than welcome! Feel free to fork and open a pull request. Please make your changes in a specific branch and request to pull into master! If you can, please make sure the game fully works before sending the PR, as that will help speed up the process.

Issues & Bug Reports

Just fill an issue and describe it. We'll check it ASAP!


If you do like our game and we hope that you do, can you please support us? Our game is not and is never going to be working for profit. We need the money just so we can continue doing what we do ;-) .

Lights Out Donation


🎲 Lights Out Game

Lightsout Info

⭐ Stars23
🔗 Source
🕒 Last Updatea year ago
🕒 Created5 years ago
🐞 Open Issues1
➗ Star-Issue Ratio23
😎 Authorsepandhaghighi