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)
|
||||
|
||||
if eval_score(pick) == False:
|
||||
if not eval_score(pick):
|
||||
new_count = count
|
||||
old_throw = throw
|
||||
else:
|
||||
@@ -195,9 +195,6 @@ 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)
|
||||
data = evaluate(inp, count, th)
|
||||
game(data)
|
||||
|
||||
Reference in New Issue
Block a user