SignetStudios / slackbot-uno

MIT License
4 stars 5 forks source link

Users that join mid-game are not given any cards #14

Closed kingofzeal closed 8 years ago

kingofzeal commented 8 years ago

Related to #15. If hands are persisted across quit/rejoin, then only new player joining mid-stream should be given an initial 7-card hand.

If we do not persist the hand across quit/join, then any player joining should be always given a new set of cards on join.

kingofzeal commented 8 years ago

Note: only an issue if game.started is true. Prior to the game being started, players should always join with an empty hand (which is then given at game start)

kingofzeal commented 8 years ago

To address both this and #15, do not allow players to join mid-game. If they do, add them to a queue, which gets dumped to the main game list when the game ends. If a player quits, they are removed from both lists.