From 5518dd5277b9c0d021610da11e558c585fd70b9f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 27 May 2016 11:51:57 +0200 Subject: [PATCH] che boiata --- main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 20a4fb1..9107951 100644 --- a/main.py +++ b/main.py @@ -318,7 +318,9 @@ class Game: self.updatevotes() for player in self.players: if player.votes > currenttop: - mostvoted = [player] + mostvoted = list() + mostvoted.append(player) + currenttop = player.votes elif player.votes == currenttop: mostvoted.append(player) if currenttop > 0: @@ -332,9 +334,11 @@ class Game: currenttop = 0 self.updatemifiavotes() for player in self.players: - if player.mifiavotes > currenttop: - mostvoted = [player] - elif player.votes == currenttop: + if player.mifiavotes > currenttop: + mostvoted = list() + mostvoted.append(player) + currenttop = player.mifiavotes + elif player.votes == currenttop: mostvoted.append(player) if currenttop > 0: return mostvoted