fix: opraveno iterování vítěze v check_win
This commit is contained in:
@@ -190,7 +190,6 @@ def check_win() -> str:
|
||||
if aggr[p] >= final_score:
|
||||
over_limit[p] = aggr[p]
|
||||
|
||||
i = 1
|
||||
winner = ""
|
||||
|
||||
if over_limit:
|
||||
@@ -203,9 +202,10 @@ def check_win() -> str:
|
||||
count = Counter(list(over_limit_sorted.values()))
|
||||
|
||||
for c in count:
|
||||
if i == 1:
|
||||
if count[c] == 1:
|
||||
winner = over_limit_sorted_list[0][0]
|
||||
if count[c] == 1:
|
||||
winner = over_limit_sorted_list[0][0]
|
||||
break
|
||||
|
||||
return winner
|
||||
|
||||
def game(data: tuple):
|
||||
|
||||
Reference in New Issue
Block a user