[Tiny Tapeout Puzzles](https://tinytapeout.com/digital_design/)
Set a code for your precious safe!
**Controls**
* Switches 1 to 7 are used to enter the code
* Switch 8 sets the code to the current entry (i.e. value of switches 1 to 7)
* Reset locks the safe
* Entering the correct code unlocks the safe
The 7-segment display shows "L" if the safe is locked and "U" if unlocked.
### To begin
Press the green button in the top left of the pane to begin the simulation.
Set the clock to free-running mode (move the switch towards the "10k" signal).
Enter your desired code using switches 1 to 7.
Turn ON switch 8 (to set the code), then turn it OFF.
Change the switches 1 to 7 (to avoid instantly unlocking the safe).
Push the RESET button (to lock the safe).
Start entering codes on the switches 1 to 7.
The safe should unlock when you enter the corrent code.
Setting the code?
Code bit 1
Bit 1 wrong?
Code bit 2
Code bit 3
Code bit 4
Code bit 5
Code bit 6
Code bit 7
Bit 2 wrong?
Bit 3 wrong?
Bit 4 wrong?
Bit 5 wrong?
Bit 6 wrong?
Bit 7 wrong?
Bit 1 or 2 wrong?
Bit 3 or 4 wrong?
Bit 5 or 6 wrong?
Any of bits 1-4 wrong?
Any of bits 5-7 wrong?
Any bit wrong?
All bits correct?
Unlock the safe
Safe is unlocked
Lock the safe
Reset
Lock state
Setting the code?
Setting the code?
Setting the code?
Setting the code?
Setting the code?
Setting the code?