Return card name from PlayingCardBase.getCardName

getCardName computed PlayingCardGlobals.getCardName(self.value) but never returned it, so it always yielded None. The sibling accessors getRank, getSuit, and getValue all return their value, and no subclass overrides getCardName, so the missing return is clearly an oversight.
This commit is contained in:
Nicolas Sanchez 2026-05-29 19:49:32 -05:00
parent a5ecbb8b1e
commit ac980c0126
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class PlayingCardBase:
self.setValue(value)
def getCardName(self):
PlayingCardGlobals.getCardName(self.value)
return PlayingCardGlobals.getCardName(self.value)
def getRank(self):
return self.rank