| 41 | |
| 42 | |
| 43 | class deck: |
| 44 | def __init__(self): |
| 45 | self.deck = [card(suit, rank) for suit in SUITS for rank in RANKS] |
| 46 | |
| 47 | def shuffle(self): |
| 48 | random.shuffle(self.deck) |
| 49 | |
| 50 | def dealCard(self): |
| 51 | return random.choice(self.deck) |
| 52 | |
| 53 | def __str__(self): |
| 54 | print(self.deck) |
| 55 | |
| 56 | |
| 57 | # Begin play |
no outgoing calls
no test coverage detected