From 61dc5056ff74cb21566b8b3a6fe170128187e264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sp=C3=A1=C4=8Dil?= Date: Tue, 23 Jun 2026 21:38:17 +0200 Subject: [PATCH] =?UTF-8?q?feature/hraci:=20o=C5=A1et=C5=99en=C3=AD=20edge?= =?UTF-8?q?-case:=20hot=20dice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2484b49..8250dec 100644 --- a/main.py +++ b/main.py @@ -161,9 +161,11 @@ def game(data: tuple): th = throw(count) clear() print(show_throw(th)) - if not check_value(th) and data[2] == "": + if not check_value(th) and data[2] == "" and count != 0: print("Smůla, třeba příště.") else: + if count == 0: + count = 6 msg = ("Jakou akci chcete provést?\n" " - Zadejte kombinaci kostek k ponechání (dojde k jejich vyhodnocení): [pozice kostek] (např. 1 nebo 34 nebo 123456).\n" " - Hodit znovu: [h].\n"