sepandhaghighi / lightsout

🎲 Lights Out Game

Home Page:http://www.lightsout.ir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


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:πŸ™ˆ

Contributors

Dependencies

Code

Music

Contributing

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!

Donations

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

About

🎲 Lights Out Game

http://www.lightsout.ir

License:MIT License


Languages

Language:JavaScript 46.4%Language:SCSS 23.0%Language:Less 20.1%Language:HTML 6.7%Language:CSS 2.0%Language:Python 1.8%