import random import time print() print("Dice rolling:") print("+--------+") print("| () () |") print("| () |") print("| () () |") print("+--------+") time.sleep(0.5) print("+--------+") print("| () |") print("| () |") print("| () |") print("+--------+") time.sleep(0.5) print("+--------+") print("| () () |") print("| |") print("| () () |") print("+--------+") time.sleep(0.5) print("+--------+") print("| |") print("| () |") print("| |") print("+--------+") time.sleep(0.5) print("+--------+") print("| ()()() |") print("| ()()() |") print("| ()()() |") print("+--------+") time.sleep(0.5) print("+--------+") print("| () |") print("| |") print("| () |") print("+--------+") print("-------------------------------------------------------------------") num = random.randint(1,6) time.sleep(1) if num==1: print("+--------+") print("| |") print("| () |") print("| |") print("+--------+") elif num==2: print("+--------+") print("| () |") print("| |") print("| () |") print("+--------+") elif num==3: print("+--------+") print("| () |") print("| () |") print("| () |") print("+--------+") elif num==4: print("+--------+") print("| () () |") print("| |") print("| () () |") print("+--------+") elif num==5: print("+--------+") print("| () () |") print("| () |") print("| () () |") print("+--------+") elif num==6: print("+--------+") print("| ()()() |") print("| ()()() |") print("| ()()() |") print("+--------+") print() print("You rolled a", num) print()