From 11db4932ead48938bf204f3f1ef322b1f97f874c Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Thu, 29 Jan 2026 11:54:10 -0500 Subject: [PATCH] Set suits and values --- Project 1/Deck.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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