-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·67 lines (54 loc) · 1.37 KB
/
main.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
class Deck:
def __init__(self):
self.size = 52;
self.suiteH = self.cards()
self.suiteD = self.cards()
self.suiteC = self.cards()
self.suiteS = self.cards()
self.hearts = self.suiteH
self.diamonds = self.suiteD
self.clubs = self.suiteC
self.spades = self.suiteS
#self.currentDeck
def cards(self):
cards = {
"a": 0,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9,
"10": 10,
"j": 11,
"q": 12,
"k": 13
}
return cards
def deal(self):
deck = {
"hearts" : self.hearts,
"diamonds" : self.diamonds,
"clubs": self.clubs,
"spades": self.spades
}
deckHalf1 = {}
deckHalf2 = {}
for x in range(len(self.size))
print(deck)
return 0
def main():
print("Hello World!")
deck = Deck()
#print(deck.hearts)
#print(deck.diamonds)
#print(deck.clubs)
#print(deck.spades)
print(deck.deal())
return 0
if __name__ == "__main__":
main()