-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path21.py
More file actions
60 lines (47 loc) · 1.37 KB
/
21.py
File metadata and controls
60 lines (47 loc) · 1.37 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
deck = [[x for x in range(4)] for rank in range(15)]
#suits = ['diamond', 'spade', 'hearts', 'ace']
'''•'''
suits = [ '0xa8', '0xa9', '0xaa']
for row in range(4):
deck[0][row] = suits[row]
for row in range(15):
for suits in range(4):
print(deck[row][suits], end='\t')
print()
print('-'*25)
for col in range(1,15):
for suit in range(4):
deck[col][suit] = col
if col==10:
deck[col][suit] = 'A'
elif col==11:
deck[col][suit] = 'J'
elif col==12:
deck[col][suit] = 'Q'
elif col==13:
deck[col][suit] = 'K'
for row in range(14):
for suits in range(4):
print(deck[row][suits], end='\t')
print()
##def main():
## initGame()
## drawHand()
## drawHand()
## while gameEnd=False:
##
## showHand()
## checkBusted()
## if busted:
## gameEnd=True
## else:
## userChoice = inputChoice()
## match userChoice:
## case 'd':
## print('draw a card')
## drawHand()
## case 'c':
## print('player calls')
## checkWinner()
## case 'q':
## print('quit the game')