[Tiny Tapeout Puzzles](https://tinytapeout.com/digital_design/puzzle_padlock/)

A padlock has been created using logic gates. Just like locker padlocks, you must enter the correct sequential code to unlock the system.

**Controls**
* The push button is used to enter your code.
* Switch 2 is used to enable the padlock. To reset at any time, toggle Switch 2 to 0 and back to 1.
* Switches 3 to 5 are used to set your guess.

### To begin

Set all switches to 0 and press the push button. A "-" will appear on the seven segment display.

When you're ready, turn on Switch 2 and press the push button to begin the challenge. The yellow LED will turn on, and the seven segment 
display will show "L" for locked".

Next set a code using Switches 3 to 5. If you enter a correct code, you will see the colored LED progress from Yellow --> Magenta.

If you succeeded, try again to get to the next stages (White then finally Light Blue!) 

If you fail to enter the correct code at any point, you will return to the yellow LED.


Need the solution?

| LED     | SW3     | SW4    | SW5    |
|---------|---------|--------|--------|
| Yellow  | 1       | 0      | 0      |
| Magenta | 0       | 1      | 0      |
| White   | 0       | 0      | 1      |
Loading
tt-block-input
Loading
tt-block-output
State 0
State 1
State 2
State 3
State 4
IDLE
0/3 Correct
1/3 Correct
2/3 Correct
3/3 Correct
Unlocked!
Next State Logic for State 1
Next State Logic for State 2
Next State Logic for State 3
Next State Logic for State 4
Logic for 7-segment Display