# Team-Specific Secret Codes

Each team has their own unique codes for the four challenges:

## Team Codes

### HIPPS
- **CASE** (GetToTheTemple): `45678`
- **FLOATIES** (Mastermind): `2956`
- **STUNGUN** (Anaconda): `1352`
- **ROPE** (Hangman): `CARE`

### CROCKS
- **CASE** (GetToTheTemple): `34568`
- **FLOATIES** (Mastermind): `8623`
- **STUNGUN** (Anaconda): `4653`
- **ROPE** (Hangman): `CROX1`

### BUFFS
- **CASE** (GetToTheTemple): `23780`
- **FLOATIES** (Mastermind): `2435`
- **STUNGUN** (Anaconda): `6411`
- **ROPE** (Hangman): `B00KS`

### TUSKS
- **CASE** (GetToTheTemple): `12345` *(TODO: Update with actual codes)*
- **FLOATIES** (Mastermind): `6789` *(TODO: Update with actual codes)*
- **STUNGUN** (Anaconda): `9876` *(TODO: Update with actual codes)*
- **ROPE** (Hangman): `TUSKS` *(TODO: Update with actual codes)*

## How It Works

Codes are stored in the `teams` table in the database with columns:
- `case_code`
- `floaties_code`
- `stungun_code`
- `rope_code`

When a team completes a challenge, the system:
1. Queries the team's specific code from the database
2. Reveals the team-specific code in the victory modal
3. Stores the code in `team_collected_codes` table

This ensures each team sees only their own codes, making the physical escape room boxes unique to each team.

## Updating Codes

To update team codes:

1. **Via SQL**:
```sql
UPDATE teams SET
  case_code = 'NEW_CODE',
  floaties_code = 'NEW_CODE',
  stungun_code = 'NEW_CODE',
  rope_code = 'NEW_CODE'
WHERE team_name = 'TeamName';
```

2. **Via Database Reset**:
Edit `server/database.js` in the `seedTeams()` function and restart the server with a fresh database.
