Lights Out
Lights Out is an electronic game released by Tiger Electronics in 1995. The game consists of a 5 x 5 grid of lights. The game starts, a random number of lights are switched on. Pressing any of the lights will toggle it and its 4 adjacent lights. The goal of the game is to find the smallest combination of lights in order to switch all the lights off.
Material
- 3D Printer and 3D filament
- Adafruit Trellis
- Adafruit Silicon Keypad
- Leds
- Wires
- Arduino
- Soldering iron and solder
- ΓΈ3x12 countersunk head bolts and nuts
DIY
- Print the box
-
Solder the leds on the Trellis
-
For the big board, solder the trellis together and their identification
- Solder the wires on the Trellis
- Fix the Arduino on the bottom of the box
- Wire the Trellis to the Arduino
- Assemble the box
- Using the Arduino IDE download the code on the Arduino
Activity description
- Tell the participant the rules of the game
- Let them play around and try to switch off the lights
- If they are stuck and need some help show them the light chasing strategy
- Once solved, press on a fixed number k of lights, tell the participants they can solve it by pressing on k lights
- If they still want to play tell them now that they have to turn on all the lights
References
The material of this activity is based on the following references:
- 3D Models based on the Trellis Box
- Code based on the Adafruit Trellis Library
- Activity inspired by the article Lights Out: A little mathematic game
Sources
- note in english and in french
- 3D models for the 4x4 box and 8x8 box
- code for the 4x4 game and 8x8 game