Skip to content

Commit

Permalink
Perform minor cleanup of resource.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Jul 29, 2024
1 parent d15ff23 commit fd230df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pysollib/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ class CSI:
TYPE_ISHIDO = 12

# cardset subtypes
# (french)
SUBTYPE_NONE = 0
SUBTYPE_JOKER_DECK = 1
# (puzzle)
SUBTYPE_3X3 = 3
SUBTYPE_4X4 = 4
SUBTYPE_5X5 = 5
Expand Down Expand Up @@ -574,7 +576,7 @@ def register(self, cs):
return
cs.ncards = len(cs.ranks) * len(cs.suits) + len(cs.trumps)
cs.name = cs.name[:30]
if not (1 <= cs.si.size <= 5):
if not (CSI.SIZE_TINY <= cs.si.size <= CSI.SIZE_HIRES):
CW, CH = cs.CARDW, cs.CARDH
if CW <= 55 and CH <= 72:
cs.si.size = CSI.SIZE_TINY
Expand Down

0 comments on commit fd230df

Please sign in to comment.