Expand description
holdem-rs contains more or less common types and functions used by other poker related libraries.
Enums§
- Hand
Rank Class - All hand rank classes that a 5-card hand can be worth in Texas Hold’em.
Constants§
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 Aliases§
- Cactus
KevCard - A card encoded using the bit pattern described in Cactus Kev’s article.
- Hand
Rank - A value representing the strength of a hand. The higheer, the better. The numbers go from 0 to 7461 inclusive.