forked from mr-sergi/Hacktoberfest-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dice stimulator.py
45 lines (42 loc) · 1.13 KB
/
Dice stimulator.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
39
40
41
42
43
44
45
import random
print("This is a dice simulator")
x="y"
while x=="y":
number=random.randint(1,6)
if number==1:
print("------------")
print("| |")
print("| 0 |")
print("| |")
print("------------")
if number==2:
print("------------")
print("| |")
print("| 0 0 |")
print("| |")
print("------------")
if number==3:
print("------------")
print("| 0 |")
print("| 0 |")
print("| 0 |")
print("------------")
if number==4:
print("------------")
print("| 0 0 |")
print("| |")
print("| 0 0 |")
print("------------")
if number==5:
print("------------")
print("| 0 0 |")
print("| 0 |")
print("| 0 0 |")
print("------------")
if number==6:
print("------------")
print("| 0 0 |")
print("| 0 0 |")
print("| 0 0 |")
print("------------")
x=input("Press y to roll again")