CardRank getRank(std::size_t rank)
Given an integer, get the corresponding rank enum.
Definition rank.cpp:60
char getName(const CardRank rank)
Get a character representation of a card's rank.
Definition rank.cpp:21
std::ostream & operator<<(std::ostream &out, const CardRank &rank)
Overloads << to print the rank of a card.
Definition rank.cpp:108
CardRank
The rank of a card.
Definition rank.h:21
std::size_t getNumRanks()
An auxiliary function that defines an upper bound on the number of ranks a deck of cards can have.
Definition rank.cpp:102
int getValue(const CardRank rank)
Get the numeric value of a card's rank.
Definition rank.cpp:73