Mechaniky z předlohy: tři nuly, vynulování skóre, vyhlášení vítěze #1

Merged
david-spacil merged 2 commits from agents/claude/tri-nuly-a-vitez into main 2026-08-20 17:58:28 +02:00
Showing only changes of commit e1739e65cd - Show all commits
+2 -2
View File
@@ -148,9 +148,9 @@ def game():
strikes: str = ""
if len(hraci[pointer]) > 0:
if hraci[pointer][-1:][0] == 0:
if hraci[pointer][-1] == 0:
strikes = "x"
if hraci[pointer][-2:][0] == 0:
if len(hraci[pointer]) > 1 and hraci[pointer][-2] == 0:
strikes += "x"
else:
strikes = ""