An open API service indexing awesome lists of open source software.

https://github.com/philipf5/lights-puzzle


https://github.com/philipf5/lights-puzzle

angular

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# lights-puzzle

This is a recreation of the *Lights Out* puzzle popularized by Tiger Electronics and reused in plenty of video games since then. The player is given a grid of lights, some of which are lit. Clicking any light toggles both it and all of the immediately adjacent lights, meaning any of those lights that are on will turn off, and any that are off will turn on. The objective is to reach a state where all of the lights are off.

The default configuration offers 3x3 and 6x6 grids, which means all possible puzzles are inherently solvable (it's a math thing). If you modify the project to produce different grid sizes, the randomizer may generate unsolvable puzzles.