https://github.com/philipf5/lights-puzzle
https://github.com/philipf5/lights-puzzle
angular
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/philipf5/lights-puzzle
- Owner: PhilipF5
- License: mit
- Created: 2018-11-15T03:17:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-17T18:45:40.000Z (over 6 years ago)
- Last Synced: 2025-01-12T07:46:39.568Z (5 months ago)
- Topics: angular
- Language: TypeScript
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.