The poker.card module has three basic classes for dealing with card suits, card ranks and cards. It also has a DECK, which is just a tuple of Cards.
poker.card
poker.card.
Suit
An enumeration.
Enumeration of the four Suits.
Rank
Enumeration of the 13 Ranks.
difference
Tells the numerical difference between two ranks.
value of the difference (always positive)
int
FACE_RANKS
See Face card
BROADWAY_RANKS
See Broadway card
Card
Represents a Card, which consists a Rank and a Suit.
make_random
Returns a random Card instance.
is_face
is_broadway
rank
suit