You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print('********************************************************** \n Welcome to the game Casino - BLACK JACK ! \n**********************************************************')
18
+
time.sleep(2)
19
+
print('So Finally You Are Here To Accept Your Fate')
20
+
time.sleep(2)
21
+
print('I Mean Your Fortune')
22
+
time.sleep(2)
23
+
print('Lets Check How Lucky You Are Wish You All The Best')
24
+
time.sleep(2)
25
+
print('Loading---')
26
+
time.sleep(2)
27
+
28
+
print('Still Loading---')
29
+
time.sleep(2)
30
+
print('So You Are Still Here Not Gone I Gave You Chance But No Problem May Be You Trust Your Fortune A Lot \n Lets Begin Then')
31
+
time.sleep(2)
16
32
d_cards= [] # Initialising dealer's cards
17
33
p_cards= [] # Initialising player's cards
18
-
34
+
time.sleep(2)
19
35
whilelen(d_cards) !=2:
20
36
random.shuffle(deck)
21
37
d_cards.append(deck.pop())
@@ -46,7 +62,7 @@
46
62
print("*****************The match is tie !!*************************")
47
63
exit()
48
64
49
-
65
+
# function to show the dealer's choice
50
66
defdealer_choice():
51
67
ifsum(d_cards) <17:
52
68
whilesum(d_cards) <17:
@@ -85,7 +101,8 @@ def dealer_choice():
85
101
86
102
87
103
whilesum(p_cards) <21:
88
-
104
+
105
+
#to continue the game again and again !!
89
106
k=input('Want to hit or stay?\n Press 1 for hit and 0 for stay ')
0 commit comments