fix: opraveno iterování vítěze v check_win

This commit is contained in:
2026-06-24 23:53:07 +02:00
parent 4ec5a15e32
commit e550f7d50a
+4 -4
View File
@@ -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):