X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fdeck.py;h=b0822a9705704ad055fe2876186e62be7562d076;hb=b1a79e70ed02ceeac0f2343067e0f58deff3b37e;hp=4a768b6b2f7d41fca9f703f63c76e189f132ab2f;hpb=611a8e823ba8a4471d1b0cabb1dcd82506f36551;p=lightcards.git diff --git a/lightcards/deck.py b/lightcards/deck.py index 4a768b6..b0822a9 100644 --- a/lightcards/deck.py +++ b/lightcards/deck.py @@ -2,7 +2,10 @@ # Armaan Bhojwani 2021 class Card(list): - starred = False + """Card extends the list class, and adds ability to star them.""" + def __init__(self, inp): + super().__init__(inp) + self.starred = False def unStar(self): self.starred = False @@ -27,8 +30,10 @@ class Card(list): class Status(): - index = 0 - side = 0 + """The status class keeps track of where in the deck the user is""" + def __init__(self): + self.index = 0 + self.side = 0 def forward(self, stack): if not self.index == len(stack):