Closed kuv2707 closed 3 weeks ago
Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.
@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.
@csoc-bot claim
@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.
@csoc-bot claim
@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.
@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.
Description
Following the pattern of
THROW_CARD
, we need to have a handler for theLEAVE_GAME
event. This should reside in a file inuno-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