Skip to content

Commit 758b11c

Browse files
authored
Update Dice_game.py
1 parent d2287ec commit 758b11c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dice_game/Dice_game.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@
2020
(total, total1) = (0,0)
2121

2222
max_score = 36
23+
DECORATE_COUNT = 45
2324

2425
# Iterate until a player is won
2526
while(1):
27+
print(f'\nScores: ')
28+
print('='*DECORATE_COUNT)
29+
print(f'{player1}: {total}\n{player2}: {total1}')
30+
print('='*DECORATE_COUNT)
2631
#1st player chance
2732
while(chance == 0):
2833
print('\n')
@@ -65,5 +70,5 @@
6570

6671
if total1 >= max_score:
6772
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))
6974
sys.exit()

0 commit comments

Comments
 (0)