diff --git a/dice.py b/dice.py index b36c722..02b46c9 100644 --- a/dice.py +++ b/dice.py @@ -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 = ""