parent
4ae599735f
commit
13a048bd8b
7
game.py
7
game.py
|
@ -12,7 +12,7 @@ def check_special_score(score):
|
|||
|
||||
if score == 9:
|
||||
print("9 erreicht. Ende.")
|
||||
return True, 0
|
||||
return True, score
|
||||
elif score == 10:
|
||||
print("10 erreicht. Noch ein letzter Wurf.")
|
||||
time.sleep(3)
|
||||
|
@ -28,7 +28,7 @@ def check_special_score(score):
|
|||
|
||||
def roll_dice(number=1, faces=6, seed=None):
|
||||
"""
|
||||
Throws a certain number of dice iwth a certain number of faces.
|
||||
Throws a certain number of dice with a certain number of faces.
|
||||
|
||||
:param number: Number of dice
|
||||
:param faces: Number of faces of a die
|
||||
|
@ -79,6 +79,7 @@ def sixteen_is_dead(players):
|
|||
else: # AI
|
||||
pass
|
||||
|
||||
# TODO: implement winner decision process, max(all_results) and min(all_results)
|
||||
print(all_results)
|
||||
|
||||
|
||||
|
@ -90,7 +91,7 @@ if __name__ == "__main__":
|
|||
human = (name, True)
|
||||
players.append(human)
|
||||
|
||||
for p in player_number:
|
||||
for p in range(int(player_number)):
|
||||
players.append(("P" + str(p), False))
|
||||
|
||||
sixteen_is_dead(players)
|
||||
|
|
Loading…
Reference in New Issue