Crate holdem [−] [src]
holdem-rs contains more or less common types and functions used by other poker related libraries.
Enums
HandRankClass |
All hand rank classes that a 5-card hand can be worth in Texas Hold'em. |
Constants
HAND_RANK_COUNT |
Functions
hand_rank_to_class |
Translates a hand rank to a rank class. assumes there are HAND_RANK_COUNT distinct hand ranks, where the largest are the most valuable. Numbers based on: http://www.suffecool.net/poker/evaluator.html |
Type Definitions
CactusKevCard |
A card encoded using the bit pattern described in Cactus Kev's article. |
HandRank |
A value representing the strength of a hand. The higheer, the better. The numbers go from 0 to 7461 inclusive. |