hwoodward / Remote-Card-Games

Program for playing card games online/remotely. Goal is to play a game of hand and foot with multiple groups in different locations.
MIT License
2 stars 1 forks source link

If you discard your last card in your last hand without going out you get a bonus turn. #81

Closed hwoodward closed 4 years ago

hwoodward commented 4 years ago

When you discard your last card in your last hand you go zaphod. In handleEmptyHand this is detected and we send an empty discard. However if you have just discarded your last card we also send your actual discard. Because we sent two discards the next two players both get notified that it is their turn.

To fix I will make it so that if you discarded to 0 we do not send the empty discard.

hwoodward commented 4 years ago

Fixed in MR for round transition