# Chalkboard Imposter (Beta)

A playable **real-time** beta of your chalkboard-style social deduction game.

## What’s included
- Create/Join room by code
- Lobby with player cards
- Server-authoritative phases:
  - ROLE_REVEAL → INPUT (2 rounds) → ANSWER_REVEAL → DISCUSSION → ROUND_VOTE → ELIMINATION → GAME_END
- Imposter selection rules:
  - 3–4 players: 0–1 imposters; **10%** chance of 0 imposters
  - 5–6 players: 1–2 imposters; **5%** chance of 0 imposters
- Chalkboard UI with center focus question and cards around
- “Mic allowed” UI gating indicators (voice streaming not implemented yet)

## Run locally
1) Install Node.js 18+
2) In this folder:
```bash
npm install
npm start
```
3) Open: http://localhost:3000

## Beta notes
- This uses in-memory rooms (server restart clears rooms)
- Stats are stored in browser localStorage for now

## Next upgrades
- Real voice (WebRTC) + server policy enforcement
- Persistent accounts (Supabase/Firebase)
- Expanded safe prompt database
