A simple real-time multiplayer piano game. Take turns playing melodies - one player records, the other tries to replay it. Fail and you get a letter (M-A-G-I-C). First to spell MAGIC loses!
# Install dependencies
cd client
npm install
npm run build
cd..
npm install
node index.js
- Open http://localhost:3000
- Click "Create Game" and share the link with a friend
- Player 1 records a melody using keyboard keys, then clicks "Done"
- Player 2 listens to the melody, then tries to replay it within 50 seconds
- If they fail, they get a letter toward MAGIC
- Roles switch - now Player 2 records and Player 1 replays
- First to spell MAGIC loses!
White keys (bottom row): A S D F G H J K L → C4 D4 E4 F4 G4 A4 B4 C5 D5
Black keys (top row): W E T Y U O P → C#4 D#4 F#4 G#4 A#4 C#5 D#5
- Frontend: Vite + Vanilla JS + Web Audio API
- Backend: Node.js + WebSocket (ws library)
- No database - rooms stored in memory