shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
21 stars 43 forks source link

Add game event handler for `LEAVE_GAME` event #94

Closed kuv2707 closed 3 weeks ago

kuv2707 commented 3 weeks ago

Description

Following the pattern of THROW_CARD, we need to have a handler for the LEAVE_GAME event. This should reside in a file in uno-game-engine/events.

Specs

The event handler should validate the event, apply it on the respective game, and return a result indicating whether the event was successfully applied or some error occured. The leaving player's cards should be restored to the deck, and the deck should be shuffled.

Notes

issue-assigner[bot] commented 3 weeks ago

Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.

issue-assigner[bot] commented 3 weeks ago

@ritwik-69 You already have this issue assigned: issue#77 . Abandon your existing issue or contact a maintainer if you want to get this issue assigned.

ritwik-69 commented 3 weeks ago

@csoc-bot claim

issue-assigner[bot] commented 3 weeks ago

@ritwik-69 You already have this issue assigned: issue#93 . Abandon your existing issue or contact a maintainer if you want to get this issue assigned.

asmit27rai commented 3 weeks ago

@csoc-bot claim

issue-assigner[bot] commented 3 weeks ago

@asmit27rai You already have this issue assigned: issue#84 . Abandon your existing issue or contact a maintainer if you want to get this issue assigned.

kuv2707 commented 3 weeks ago

@ritwik-69 If you wish to work on a PR not assigned to you, you can leave a message letting others know you are working on it, and tag a maintainer to get it assigned to you.