diff --git a/main.py b/main.py index 633f49e..2484b49 100644 --- a/main.py +++ b/main.py @@ -68,7 +68,7 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple: pointer = nxt_key inp = str(inp) - if re.search("^\d+$", inp): + if re.search(r"^\d+$", inp): if len(inp) > count: data = ("msg", "ER01", "Tolika kostkami nemůžete hodit. Zkuste to znovu:", count, throw) return data @@ -105,6 +105,13 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple: elif inp == "h": data = ("count", count, "") return data + elif inp == "k": + global score + players[pointer].append(score) + score = 0 + next_player() + data = ("count", 6, "") + return data def check_value(throw: str) -> bool: throw_s = sorted(throw)