Skip to content

Krish54491/PianoWizards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piano Wizards Hacklahoma 2026 1st place winner

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!

Setup for Local

# Install dependencies
cd client
npm install
npm run build
cd..
npm install
node index.js

How to Play

  1. Open http://localhost:3000
  2. Click "Create Game" and share the link with a friend
  3. Player 1 records a melody using keyboard keys, then clicks "Done"
  4. Player 2 listens to the melody, then tries to replay it within 50 seconds
  5. If they fail, they get a letter toward MAGIC
  6. Roles switch - now Player 2 records and Player 1 replays
  7. First to spell MAGIC loses!

Controls

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

Tech Stack

  • Frontend: Vite + Vanilla JS + Web Audio API
  • Backend: Node.js + WebSocket (ws library)
  • No database - rooms stored in memory

About

Hacklahoma 2026

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors