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