Skip to content

Commit

Permalink
Merge pull request #13 from Chazzz/Chazzz-unicode-support-card-new
Browse files Browse the repository at this point in the history
Add unicode support to Card.new
  • Loading branch information
ihendley authored Feb 11, 2023
2 parents 01cb5f2 + 2d5ce1f commit 0f2f4ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions treys/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class Card:
'h': 2, # hearts
'd': 4, # diamonds
'c': 8, # clubs
'\u2660': 1, # spades (unicode)
'\u2764': 2, # hearts (unicode)
'\u2666': 4, # diamonds (unicode)
'\u2663': 8, # clubs (unicode)
}
INT_SUIT_TO_CHAR_SUIT: str = 'xshxdxxxc'

Expand Down

0 comments on commit 0f2f4ff

Please sign in to comment.