# PIN Minigame Test

Test the PIN minigame with various configurations. The minigame features a digital keypad, attempt logging, and two types of Mastermind-style feedback: Pin-Cracker item (toggleable) and Mastermind Mode (automatic via parameter). Both provide visual feedback with green/amber lights showing correct digits and positions.

### Features

- Digital Display: Shows current input with visual feedback
- Number Pad: 0-9 keys with hover effects and animations
- Backspace: Remove last entered digit (can be disabled)
- Auto-submit: Automatically submits when PIN length is reached
- Attempt Logging: Shows all previous attempts with timestamps
- Pin-Cracker Item: Toggleable visual feedback with green/amber lights
- Mastermind Mode: Automatic visual feedback enabled via parameter
- Visual Feedback: Green lights for correct position, amber for correct digit
- Keyboard Support: Use number keys, backspace, and enter
- Lockout Protection: Locks after maximum attempts
- Visual Feedback: Success/error animations and colors

### Pin-Cracker Info Leak Mode

When you have the pin-cracker item, you can enable visual feedback for each attempt:

- 🟢 Green Light: Correct digit in correct position
- 🟡 Amber Light: Correct digit in wrong position
- Example 1: PIN "1234", guess "1356" → 2 green lights, 0 amber lights
- Example 2: PIN "1123", guess "1111" → 2 green lights, 0 amber lights (duplicates handled correctly)
- Example 3: PIN "1234", guess "1123" → 1 green light, 1 amber light

### Mastermind Mode

Mastermind mode is enabled via parameter and provides automatic visual feedback without needing the pin-cracker item:

- Automatic Feedback: Visual lights appear automatically for each attempt
- No Toggle Required: Feedback is always enabled when mastermind mode is active
- Same Visual System: Uses the same green/amber light system as pin-cracker
- Perfect for Testing: Ideal for scenarios where you want guaranteed feedback

#### Basic Test

1234
Standard 4-digit PIN with 3 attempts

#### Custom PIN

5678
Different PIN to test various scenarios

#### Long PIN

123456
6-digit PIN for extended testing

#### Info Leak

9876
PIN with Mastermind feedback enabled

#### Duplicate Digits

1123
Tests proper handling of duplicate digits

#### Pin-Cracker

9876
Visual feedback with green/amber lights

#### Mastermind Mode

2468
Automatic visual feedback enabled