X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fdeck.py;h=110c5b4fdcee15ab50a27c5eca2ea52dfa3a0ee7;hb=468d491893758e3b9ac532757ea98791303f4a6d;hp=06ed135b21b24ade39f78bd3c1d830d507fb585f;hpb=08e393b41878e67e92e1031cfe69d909df453b60;p=lightcards.git diff --git a/lightcards/deck.py b/lightcards/deck.py index 06ed135..110c5b4 100644 --- a/lightcards/deck.py +++ b/lightcards/deck.py @@ -3,7 +3,7 @@ class Card: - """Card extends the list class, and adds ability to star them.""" + """Class containing the card information.""" def __init__(self, inp): self.starred = False @@ -15,6 +15,9 @@ class Card: if len(inp) >= 2: self.back = inp[1] + def __str__(self): + return f"{self.front}, {self.back}" + def unStar(self): self.starred = False @@ -59,7 +62,7 @@ class Card: class Status: - """The status class keeps track of where in the deck the user is""" + """Keeps track of where in the deck the user is""" def __init__(self): self.index = 0