-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiceSimulator.py
More file actions
48 lines (45 loc) · 1.04 KB
/
DiceSimulator.py
File metadata and controls
48 lines (45 loc) · 1.04 KB
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
46
47
48
#Program for dice simulator in Python3
import random
print("This is a dice stimulator")
s=input ("Press S to start!")
if s=='S' or 's':
x="y"
while (x=="y" or x=='Y'):
number=random.randint(1,6)
if number==1:
print("----------")
print("| |")
print("| o |")
print("| |")
print("----------")
if number==2:
print("----------")
print("| |")
print("| o o |")
print("| |")
print("----------")
if number==3:
print("----------")
print("| o |")
print("| o |")
print("| o |")
print("----------")
if number==4:
print("----------")
print("| o o |")
print("| |")
print("| o o |")
print("----------")
if number==5:
print("----------")
print("| o o |")
print("| o |")
print("| o o |")
print("----------")
if number==6:
print("----------")
print("| o o |")
print("| o o |")
print("| o o |")
print("----------")
x=input("press Y to roll again")