]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/deck.py
Reformat using Black
[lightcards.git] / lightcards / deck.py
index e3ef5c523a3a27d0068c23882be9c541e91aee62..eac8b69c9de59bf5ec4b3ace6d651d3a16db230f 100644 (file)
@@ -1,9 +1,13 @@
 # Classes pertaining to the card deck
 # Armaan Bhojwani 2021
 
+
 class Card(list):
     """Card extends the list class, and adds ability to star them."""
-    starred = False
+
+    def __init__(self, inp):
+        super().__init__(inp)
+        self.starred = False
 
     def unStar(self):
         self.starred = False
@@ -27,10 +31,12 @@ class Card(list):
             return "Not starred"
 
 
-class Status():
+class Status:
     """The status class keeps track of where in the deck the user is"""
-    index = 0
-    side = 0
+
+    def __init__(self):
+        self.index = 0
+        self.side = 0
 
     def forward(self, stack):
         if not self.index == len(stack):