feature/vynulovani: přidán ukazatel pčtu "striků" v podobě jednoho až dvou X vedle celkového skóre hráče
This commit is contained in:
1 parent
0682ad88ce
commit
cef9468ad0
1 file changed
+12
-1
@@ -233,7 +233,18 @@ def game(data: tuple):
|
|||||||
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}.")
|
||||||
print(f"Na tahu je {pointer} ({aggr[pointer]}).")
|
|
||||||
|
strikes = ""
|
||||||
|
|
||||||
|
if len(players[pointer]) > 0:
|
||||||
|
if players[pointer][-1:][0] == 0:
|
||||||
|
strikes = "x"
|
||||||
|
if players[pointer][-2:][0] == 0:
|
||||||
|
strikes += "x"
|
||||||
|
else:
|
||||||
|
strikes = ""
|
||||||
|
|
||||||
|
print(f"Na tahu je {pointer} ({aggr[pointer]}{strikes}).")
|
||||||
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