feature/vynulovani: přidána kondolenční hláška

This commit is contained in:
david-spacil committed 2026-06-26 20:37:38 +02:00
1 parent cef9468ad0
commit e7c8d99c96
1 file changed
+3 -1
+3 -1
View File
@@ -129,6 +129,8 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple:
last_two_sum = sum(last_two) last_two_sum = sum(last_two)
if last_two_sum == 0: if last_two_sum == 0:
score = -sum(players[pointer]) score = -sum(players[pointer])
clear()
input("Po třech nulových hodech bylo vaše skóre vynulováno.")
players[pointer].append(score) players[pointer].append(score)
aggr[pointer] = sum(players[pointer]) aggr[pointer] = sum(players[pointer])
@@ -243,7 +245,7 @@ def game(data: tuple):
strikes += "x" strikes += "x"
else: else:
strikes = "" strikes = ""
print(f"Na tahu je {pointer} ({aggr[pointer]}{strikes}).") print(f"Na tahu je {pointer} ({aggr[pointer]}{strikes}).")
print(show_throw(th)) print(show_throw(th))
if not check_value(th) and data[2] == "" and count != 0: if not check_value(th) and data[2] == "" and count != 0: