Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- import random
- import sys
- def rolldice():
- return random.randint(1, 6)
- turn_score = 0
- while turn_score < 100:
- dice = rolldice()
- turn_score += dice
- print(f'Rolled a {dice}')
- if dice==1:
- print('Pigged Out!')
- break
- else:
- continue
- e=+turn_score
- print('Player Ones score:', g)
- print('Player Twos score:', k)
- print(f'Turn score = {turn_score}')
- print('New total score =', e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement