Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import os
- x = "y"
- while x.lower() == "y":
- number = random.randint(1, 6)
- if number == 1:
- print("[-----]")
- print("[ ]")
- print("[ 0 ]")
- print("[ ]")
- print("[-----]")
- elif number == 2:
- print("[-----]")
- print("[ 0 ]")
- print("[ ]")
- print("[ 0 ]")
- print("[-----]")
- elif number == 3:
- print("[-----]")
- print("[ ]")
- print("[0 0 0]")
- print("[ ]")
- print("[-----]")
- elif number == 4:
- print("[-----]")
- print("[0 0]")
- print("[ ]")
- print("[0 0]")
- print("[-----]")
- elif number == 5:
- print("[-----]")
- print("[0 0]")
- print("[ 0 ]")
- print("[0 0]")
- print("[-----]")
- elif number == 6:
- print("[-----]")
- print("[0 0 0]")
- print("[ ]")
- print("[0 0 0]")
- print("[-----]")
- x = input("press y to roll again and n to exit:")
- os.system("cls")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement