X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fdeck.py;h=823946f0266c35e7f4c3c86e33271e4ec3823980;hb=85327074f6aaa4e46ec36cec6fd6f07317e96ea6;hp=abb13a3804b53b7fb01a8d1856db3f3552bcaf60;hpb=9f6704125cc3c62a4ccab66d700f4eaf39a11a30;p=lightcards.git diff --git a/lightcards/deck.py b/lightcards/deck.py index abb13a3..823946f 100644 --- a/lightcards/deck.py +++ b/lightcards/deck.py @@ -48,6 +48,12 @@ class Card: else: self.side = 0 + def get_reverse(self): + if self.side == 0: + return 1 + else: + return 0 + class Status: """Keeps track of where in the deck the user is"""