8
8
for card in cards :
9
9
tarot_deck .append (card )
10
10
11
+
12
+ # Close file, display outro text
11
13
def fin ():
14
+ file_handle .close ()
12
15
print ("Whichever your choice was..." )
13
16
input (">> press enter" )
14
17
print ("May the cards ever be in your favour" )
@@ -18,6 +21,7 @@ def fin():
18
21
print ("*" * 72 )
19
22
20
23
24
+ # Display when 'Y' or 'y' is entered
21
25
def youve_chosen_yes ():
22
26
print ("I see that you've chosen to divine your future...." )
23
27
input (">> press enter" )
@@ -46,6 +50,7 @@ def youve_chosen_yes():
46
50
fin ()
47
51
48
52
53
+ # Display when 'N' or 'n' is entered
49
54
def youve_chosen_no ():
50
55
print ("Are you wise..." )
51
56
input (">> press enter" )
@@ -56,6 +61,7 @@ def youve_chosen_no():
56
61
fin ()
57
62
58
63
64
+ # Handles other cases
59
65
def youve_chosen_neither ():
60
66
print ("*le sigh*" )
61
67
input (">> press enter" )
@@ -71,7 +77,7 @@ def youve_chosen_neither():
71
77
fin ()
72
78
73
79
74
- # Introductory lines
80
+ # Intro text
75
81
print ("In this black box, you read white words" )
76
82
input (">> press enter" )
77
83
print ("Words that might warn you of danger..." )
@@ -82,13 +88,16 @@ def youve_chosen_neither():
82
88
input (">> press enter" )
83
89
print ()
84
90
85
- # Choice to be made here
91
+
92
+ # Choice made here
86
93
print ("Do you dare draw a card?" )
87
- ch = input (">> enter Y/N : " )
94
+ ch = input (">> enter Y/n : " )
88
95
print ("\n Interesting..." )
89
96
97
+
90
98
# Driver code
91
99
if ch .lower () == 'y' :
100
+ print ()
92
101
youve_chosen_yes ()
93
102
94
103
elif ch .lower ()== 'n' :
0 commit comments