feature: multiplayer – registrace hráčů, střídání tahů a agregace skóre #9
@@ -101,7 +101,7 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple:
|
|||||||
|
|
||||||
new_count = len(old_throw)
|
new_count = len(old_throw)
|
||||||
|
|
||||||
if eval_score(pick) == False:
|
if not eval_score(pick):
|
||||||
new_count = count
|
new_count = count
|
||||||
old_throw = throw
|
old_throw = throw
|
||||||
else:
|
else:
|
||||||
@@ -195,9 +195,6 @@ def game(data: tuple):
|
|||||||
" - Hodit znovu: [h].\n"
|
" - Hodit znovu: [h].\n"
|
||||||
f" - Ukončit hod a ponechat si skóre z tohoto hodu ({score}): [k].\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)
|
inp = input(msg)
|
||||||
data = evaluate(inp, count, th)
|
data = evaluate(inp, count, th)
|
||||||
game(data)
|
game(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user