Klausj
Published © GPL3+

Puzzle using 7 keys and 7 LEDs

The goal is turning on the 7 LEDs using the 7 keys, but each key toggles not only its adjacent LED but also its two neighbours.

IntermediateFull instructions provided1 hour244

Things used in this project

Story

Read more

Code

LEd_5678.zip

Arduino
Version 3
No preview (download only).

Code for Lights-on using UNO-R4-Wifi

Arduino
The same game but running on a ARDUINO UNO R4 Wifi
No preview (download only).

Cheat sheet

Textile
Help to solve the game
Cheat sheet to solve the game with minimum of keys to press:
Left column: LEDs currently on
Right column: the keys have been pressed so far
What to do: press the keys indicated by a "0" in the right column
(The lines marked by "<--" show states when only 1 key 
has been pressed, so another 6 keys have to be pressed.)

LEDs on-Keys that have been pressed
0000001	1011011
0000010	0110111
0000011	1101100
0000100	1101110
0000101	0110101
0000110	1011001
0000111	0000010 <--
0001000	1011101
0001001	0000110
0001010	1101010
0001011	0110001
0001100	0110011
0001101	1101000
0001110	0000100 <--
0001111	1011111
0010000	0111011
0010001	1100000
0010010	0001100
0010011	1010111
0010100	1010101
0010101	0001110
0010110	1100010
0010111	0111001
0011000	1100110
0011001	0111101
0011010	1010001
0011011	0001010
0011100	0001000 <--
0011101	1010011
0011110	0111111
0011111	1100100
0100000	1110110
0100001	0101101
0100010	1000001
0100011	0011010
0100100	0011000
0100101	1000011
0100110	0101111
0100111	1110100
0101000	0101011
0101001	1110000
0101010	0011100
0101011	1000111
0101100	1000101
0101101	0011110
0101110	1110010
0101111	0101001
0110000	1001101
0110001	0010110
0110010	1111010
0110011	0100001
0110100	0100011
0110101	1111000
0110110	0010100
0110111	1001111
0111000	0010000 <--
0111001	1001011
0111010	0100111
0111011	1111100
0111100	1111110
0111101	0100101
0111110	1001001
0111111	0010010
1000000	1101101
1000001	0110110
1000010	1011010
1000011	0000001 <--
1000100	0000011
1000101	1011000
1000110	0110100
1000111	1101111
1001000	0110000
1001001	1101011
1001010	0000111
1001011	1011100
1001100	1011110
1001101	0000101
1001110	1101001
1001111	0110010
1010000	1010110
1010001	0001101
1010010	1100001
1010011	0111010
1010100	0111000
1010101	1100011
1010110	0001111
1010111	1010100
1011000	0001011
1011001	1010000
1011010	0111100
1011011	1100111
1011100	1100101
1011101	0111110
1011110	1010010
1011111	0001001
1100000	0011011
1100001	1000000 <--
1100010	0101100
1100011	1110111
1100100	1110101
1100101	0101110
1100110	1000010
1100111	0011001
1101000	1000110
1101001	0011101
1101010	1110001
1101011	0101010
1101100	0101000
1101101	1110011
1101110	0011111
1101111	1000100
1110000	0100000 <--
1110001	1111011
1110010	0010111
1110011	1001100
1110100	1001110
1110101	0010101
1110110	1111001
1110111	0100010
1111000	1111101
1111001	0100110
1111010	1001010
1111011	0010001
1111100	0010011
1111101	1001000
1111110	0100100
1111111	1111111

Six versions of Seven Keys

Arduino
Compare the versions, look at the differences
No preview (download only).

Credits

Klausj

Klausj

78 projects • 7 followers

Comments