commit adbea23b819f8667a2efd0b4dbb26c44bcb4638b (patch)
parent d64704812a643d70126792c2e04a2197d78a2d76
Author: Alex Karle <alex@karle.co>
Date: Sun, 26 Apr 2020 22:29:13 -0400
Euchre::Dealer: Allow players to join mid game
This is something we debated a while. Initially, we thought it would be
weird / allow "euchre bombing". But we decided family might want to
watch the game themselves!
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/lib/Euchre/Dealer.pm b/lib/Euchre/Dealer.pm
@@ -213,10 +213,6 @@ sub join_game {
$p->{name} = $msg->{player_name};
swap_player($game, $p, 'players') || swap_player($game, $p, 'spectators');
} else {
- if ($game->{phase} ne 'lobby') {
- send_error($p, 'Cant join as new player mid game');
- return;
- }
# Add player object to Game
# All players start as spectators and have to take a seat explicitly
$p->{name} = $msg->{player_name};