UCLA-Creative-Labs / spot-the-song

MIT License
2 stars 0 forks source link

🚀 Feature: add a score to each user in a lobby #13

Open darren2hang opened 1 year ago

darren2hang commented 1 year ago

We want to add a score attribute to each user in a lobby so we can keep track of the points they earn for guessing the correct song.

Use Case

Each lobby needs to keep track of the score of each of it's users.

Proposed Solution

We want the userMetadata array in the Lobby object to also contain a score attribute for each user. The score attribute should be initialized to 0.

Modify the Lobby.addUser() function in packages/@aurgy/server/lib/lobby.ts


This is a :rocket: Feature Request