We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2287ec commit 758b11cCopy full SHA for 758b11c
Dice_game/Dice_game.py
@@ -20,9 +20,14 @@
20
(total, total1) = (0,0)
21
22
max_score = 36
23
+DECORATE_COUNT = 45
24
25
# Iterate until a player is won
26
while(1):
27
+ print(f'\nScores: ')
28
+ print('='*DECORATE_COUNT)
29
+ print(f'{player1}: {total}\n{player2}: {total1}')
30
31
#1st player chance
32
while(chance == 0):
33
print('\n')
@@ -65,5 +70,5 @@
65
70
66
71
if total1 >= max_score:
67
72
print('\n\n******************* GAME OVER ********************\n')
68
- print('{}(Player1) Won the Game in {} tries. Congratulations!!!'.format(player2, tries1))
73
+ print('{}(Player1) won the Game in {} tries. Congratulations!!!\n'.format(player2, tries1))
69
74
sys.exit()
0 commit comments