feature: konec hry – cílové skóre a vyhlášení vítěze #10

Merged
david-spacil merged 3 commits from feature/konec-hry into version/v0.1.0 2026-06-24 23:57:33 +02:00
Showing only changes of commit e550f7d50a - Show all commits
+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):