diff --git a/main.py b/main.py index 820743e..10bd7a1 100644 --- a/main.py +++ b/main.py @@ -127,6 +127,9 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple: next_player() data = ("count", 6, "") return data + else: + data = ("msg", "ER03", "Zadejte prosím platnou hodnotu:", count, throw) + return data def check_value(throw: str) -> bool: throw_s = sorted(throw) @@ -192,6 +195,7 @@ def game(data: tuple): " - Hodit znovu: [h].\n" f" - Ukončit hod a ponechat si skóre z tohoto hodu ({score}): [k].\n" ) + print(f"Count je {count}") # if old_throw != "": # msg += f"\nHodnoty odložených kostek: {old_throw}" inp = input(msg) @@ -199,10 +203,11 @@ def game(data: tuple): game(data) elif data[0] == "msg": - if data[1] == "ER01" or data[1] == "ER02": + if data[1] == "ER01" or data[1] == "ER02" or data[1] == "ER03": msg = data[2] count = data[3] th = data[4] + clear() inp = input(msg) data = evaluate(inp, count, th) game(data)