Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deck = [] | |
suits = ['spade', 'club', 'diamond', 'heart'] | |
num_cards = [num for num in range(2,11)] | |
face_cards = ['jack', 'queen', 'king', 'ace'] | |
cards = num_cards + face_cards | |
class Deck: | |
def __init__(self, values, suits): | |
self.values = values | |
self.suits = suits |