Advertisement
182days

Dice Roller (Hard 8)

May 10th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. #digital dice
  2. while True:
  3.     import random
  4.     import time
  5.     go = input("Press enter to roll two dice")
  6.     time.sleep (0)
  7.     print ("Rolling the first dice!")
  8.     time.sleep (0)
  9.     dice1 = random.randint(1, 6)
  10.     time.sleep (0)
  11.     print ("Rolling the second dice!")
  12.     dice2 = random.randint(1, 6)
  13.     time.sleep (0)
  14.     print ("You rolled a", dice1, "and a", dice2)
  15.     if dice1 == 4 and dice2 == 4:
  16.         print ("You rolled a Hard 8!!!!")
  17.         break
  18.     else:
  19.         print ("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement