a Livecode adaption of a popular Retrogame from 1995
Lights Out is an electronic game released by Tiger Electronics in 1995. 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.
Lights Out is a popular programming example in many courses.
This is an adaptation in Livecode for learning and practice purposes.
-- Revision 2: Fixed a small Bug