diff --git a/gameloop.py b/gameloop.py index ecffc22..d666655 100644 --- a/gameloop.py +++ b/gameloop.py @@ -985,10 +985,13 @@ def game(send, notice, voice, devoice, get_event): if players[nick] is not czar: send_cards(nick) - while len(choosers) > 0: + while True: # Make sure that if a chooser leaves, they won't be waited on choosers = [i for i in choosers if i in players.values()] + if len(choosers) == 0: + break + if len(players) < 2: send('Not enough players to continue (needs at least two), quitting game') return no_game