-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dice_game.py
38 lines (34 loc) · 876 Bytes
/
Dice_game.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import random
import time
def dice_game():
dice = ["1","2","3","4","5","6"]
roll_dice = random.choice(dice)
# print(roll_dice)
time.sleep(0.5)
if roll_dice == "1":
print("[-------]")
print("[---0---]")
print("[-------]")
elif roll_dice == "2":
print("[0------]")
print("[-------]")
print("[------0]")
elif roll_dice == "3":
print("[0------]")
print("[---0---]")
print("[------0]")
elif roll_dice == "4":
print("[0-----0]")
print("[-------]")
print("[0-----0]")
elif roll_dice == "5":
print("[0-----0]")
print("[---0---]")
print("[0-----0]")
elif roll_dice == "6":
print("[0-----0]")
print("[0-----0]")
print("[0-----0]")
else:
print("Invalid Input")
# dice_game()