release: v0.2.0 #28
@@ -77,7 +77,7 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple[Any, ...]:
|
|||||||
inp = str(inp)
|
inp = str(inp)
|
||||||
if re.search(r"^\d+$", inp):
|
if re.search(r"^\d+$", inp):
|
||||||
if len(inp) > count:
|
if len(inp) > count:
|
||||||
data: tuple[Any, ...] = ("msg", "ER01", "Tolika kostkami nemůžete hodit. Zkuste to znovu:", count, throw)
|
data: tuple[Any, ...] = ("msg", "ER01", "Tolika kostkami nemůžete hodit. Zkuste to znovu: ", count, throw)
|
||||||
else:
|
else:
|
||||||
for x in inp:
|
for x in inp:
|
||||||
x = int(x)
|
x = int(x)
|
||||||
@@ -86,7 +86,7 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple[Any, ...]:
|
|||||||
ran = "1"
|
ran = "1"
|
||||||
else:
|
else:
|
||||||
ran = f"1–{count}"
|
ran = f"1–{count}"
|
||||||
data = ("msg", "ER02", f"Zvolte prosím kostky v platném rozsahu ({ran}):", count, throw)
|
data = ("msg", "ER02", f"Zvolte prosím kostky v platném rozsahu ({ran}): ", count, throw)
|
||||||
return data
|
return data
|
||||||
old_throw: list[str] = []
|
old_throw: list[str] = []
|
||||||
pick: list[str] = []
|
pick: list[str] = []
|
||||||
@@ -234,7 +234,7 @@ def game(data: tuple) -> None:
|
|||||||
if(th == ""):
|
if(th == ""):
|
||||||
th = throw(count)
|
th = throw(count)
|
||||||
clear()
|
clear()
|
||||||
print(f"Vítězné skóre: {final_score}.")
|
# print(f"Vítězné skóre: {final_score}.")
|
||||||
|
|
||||||
strikes: str = ""
|
strikes: str = ""
|
||||||
|
|
||||||
@@ -246,7 +246,7 @@ def game(data: tuple) -> None:
|
|||||||
else:
|
else:
|
||||||
strikes = ""
|
strikes = ""
|
||||||
|
|
||||||
print(f"Na tahu je {pointer} ({aggr[pointer]}{strikes}).")
|
print(f"Na tahu je {pointer} ({aggr[pointer]}{strikes}/{final_score}).")
|
||||||
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:
|
||||||
global score
|
global score
|
||||||
|
|||||||
Reference in New Issue
Block a user