-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweek_10.py
More file actions
102 lines (95 loc) · 1.43 KB
/
Copy pathweek_10.py
File metadata and controls
102 lines (95 loc) · 1.43 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import random
################################################
############### BEGINNER #######################
################################################
deck_i = {
'diamond': ['A', 'K', 'Q', 'J', 2, 3, 4, 5, 6, 7, 8, 9, 10],
'heart': ['A', 'K', 'Q', 'J', 2, 3, 4, 5, 6, 7, 8, 9, 10],
'club': ['A', 'K', 'Q', 'J', 2, 3, 4, 5, 6, 7, 8, 9, 10],
'spade': ['A', 'K', 'Q', 'J', 2, 3, 4, 5, 6, 7, 8, 9, 10]
}
#
#
#
#
#
#
#
#
#
################################################
############# INTERMEDIATE #####################
################################################
cards = [i for i in range(2, 11)]
faces = ['A', 'K', 'Q', 'J']
cards.extend(faces)
deck_ii = {
'diamond': cards,
'heart': cards,
'club': cards,
'spade': cards
}
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
################################################
############### ADVANCED #######################
################################################
cards = []
for meow_mix in range(2, 11):
cards.append(meow_mix)
faces = ['A', 'K', 'Q', 'J']
cards.extend(faces)
suits = ['\u2666', '\u2665', '\u2663', '\u2660']
deck_iii = {entities: cards for entities in suits}
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
print('welcome to blackjack!')
print('your first card')
suit_random = random.randint(0, 3) # 2
card_random = random.randint(0, 12)
suit = list(deck_iii.keys())[suit_random]
card = deck_iii[suit][card_random]
print(f'{suit}{card}')