Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #digital dice
- while True:
- import random
- import time
- go = input("Press enter to roll two dice")
- time.sleep (0)
- print ("Rolling the first dice!")
- time.sleep (0)
- dice1 = random.randint(1, 6)
- time.sleep (0)
- print ("Rolling the second dice!")
- dice2 = random.randint(1, 6)
- time.sleep (0)
- print ("You rolled a", dice1, "and a", dice2)
- if dice1 == 4 and dice2 == 4:
- print ("You rolled a Hard 8!!!!")
- break
- else:
- print ("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement