]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/deck.py
Make percent complete end at 100%
[lightcards.git] / lightcards / deck.py
index 06ed135b21b24ade39f78bd3c1d830d507fb585f..110c5b4fdcee15ab50a27c5eca2ea52dfa3a0ee7 100644 (file)
@@ -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