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