Skip to content

Commit

Permalink
Merge pull request #15 from NutCr4cker12/master
Browse files Browse the repository at this point in the history
Fix deck of 104 cards
  • Loading branch information
ihendley authored Mar 9, 2023
2 parents 0f2f4ff + c856e89 commit 70fbaad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions treys/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Card:

# the basics
STR_RANKS: str = '23456789TJQKA'
STR_SUITS: str = 'shdc'
INT_RANKS: range = range(13)
PRIMES: list[int] = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41]

Expand Down
2 changes: 1 addition & 1 deletion treys/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def GetFullDeck() -> list[int]:

# create the standard 52 card deck
for rank in Card.STR_RANKS:
for suit, _ in Card.CHAR_SUIT_TO_INT_SUIT.items():
for suit in Card.STR_SUITS:
Deck._FULL_DECK.append(Card.new(rank + suit))

return list(Deck._FULL_DECK)

0 comments on commit 70fbaad

Please sign in to comment.