diff --git a/gameloop.py b/gameloop.py index ead9b10..2afe01a 100644 --- a/gameloop.py +++ b/gameloop.py @@ -1189,10 +1189,17 @@ def game(send, notice, voice, devoice, get_event): player_bot.points += 1 # Winner is Czar semantics if a - # player won, keep same czar - # otherwise + # player who's still in the game + # won, keep same czar if a bot + # won, randomize otherwise if player_bot in players.values(): czar = player_bot + elif player_bot in bots.values(): + pass + else: + # setup_round() will + # randomize + czar = None send('The winner is %s with: %s' % (player_bot.nick, combine_cards(round_call_card, card_choices[player_bot])))