Hello, I'm trying to make a card game with objects.
Here's my class deck and my class hand:
Trying to remove an object from an object list which is a class variable
Here's my class deck and my class hand:
Code:
class Deck: def __init__(self): self.deckcardlist = [] def Populate(self): for r in Card.RANK: for s in Card.SUIT: card = Card(r, s ) deckcardlist.append(card) self.deckcardlist = cardlist def Shuffle(self): random.shuffle(self.cardlist) def Deal(self, Hand): if self.deckcardlist !=...