Open darren2hang opened 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.
Each lobby needs to keep track of the score of each of it's users.
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.
score
Modify the Lobby.addUser() function in packages/@aurgy/server/lib/lobby.ts
Lobby.addUser()
packages/@aurgy/server/lib/lobby.ts
This is a :rocket: Feature Request
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 inpackages/@aurgy/server/lib/lobby.ts
This is a :rocket: Feature Request