diff --git a/Project 1/Deck.py b/Project 1/Deck.py index e69de29..2e260e2 100644 --- a/Project 1/Deck.py +++ b/Project 1/Deck.py @@ -0,0 +1,15 @@ +import random +from Card import Card + +class Deck: + def __init__(self): + self._cards= [] + self._next_card = 0 + + suits = ['Hearts', 'Diamonds', 'Clubs', 'Spades'] #the possible suits + values = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'Jack', 'Queen', 'King', 'Ace'] #the possible values + + for suit in suits: + for value in values: + self._cards.append(Card(suit, value)) + \ No newline at end of file