X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=blobdiff_plain;f=lightcards%2Fdeck.py;h=eac8b69c9de59bf5ec4b3ace6d651d3a16db230f;hp=b0822a9705704ad055fe2876186e62be7562d076;hb=7fc79f3415682ddda1e33d229aaac4db2f36e012;hpb=5a85502cda29f64f4f045817c9a99490ba64f1b8 diff --git a/lightcards/deck.py b/lightcards/deck.py index b0822a9..eac8b69 100644 --- a/lightcards/deck.py +++ b/lightcards/deck.py @@ -1,8 +1,10 @@ # Classes pertaining to the card deck # Armaan Bhojwani 2021 + class Card(list): """Card extends the list class, and adds ability to star them.""" + def __init__(self, inp): super().__init__(inp) self.starred = False @@ -29,8 +31,9 @@ class Card(list): return "Not starred" -class Status(): +class Status: """The status class keeps track of where in the deck the user is""" + def __init__(self): self.index = 0 self.side = 0