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.
This is fixed version, instead of 5x5 grid of light, this is 3x3 version grid of light. This was one of my project in C201 (C advande program for engineer). At first, I simply worte this program in C languge, you can open this link(linksbcxyz) to discover more about that project. But then I wanted to make this game more interesting, and to help me stay off computer screen for a bit, I built this in arduino.
When you turn on/off a particular light, the lights which are left/right or up/down to your respective light switch will also turn on/off. Diagonal light switching does not occur. A Blue LED will flash three time before reset the game. Reset Game: Press '0' on keypad to reset the game.
For example: if you press keys at conner, in this case if pressed key #1, so keys #1,#2 and #4 will toggle. If you press key #2, so key #2, #4,#5 and #6 will toggle, and so on. The winner is the one can turn off all the light off.