-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDice rolling.py
46 lines (44 loc) · 1.14 KB
/
Dice rolling.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
46
"""
Date: 8 jan 2021
Author: sanam kandar
Project: Dice rolling
"""
import random
print("\t\t\t\tDICE ROLLING SIMULATOR\n")
reponse = True
times = True
while reponse:
if times:
user = input("Hello do you want to roll this dice? (y/n): ").lower()
times = False
else:
user = input("do you want to roll again? (y/n): ").lower()
if user == "y":
dice = random.randint(1,6)
if dice == 1:
print(" ")
print(" ♦ ")
print(" ")
elif dice == 2:
print(" ♦")
print(" ")
print("♦ ")
elif dice == 3:
print(" ♦")
print(" ♦ ")
print("♦ ")
elif dice == 4:
print("♦ ♦")
print(" ")
print("♦ ♦")
elif dice == 5:
print("♦ ♦")
print(" ♦ ")
print("♦ ♦")
elif dice == 6:
print("♦ ♦ ♦")
print("♦ ♦ ♦")
print("♦ ♦ ♦")
else:
reponse = False
print("THANK YOU !!!!!!!!!!!")