Crate pokereval

Crate pokereval 

Source
Expand description

pokereval-rs currently contains a single way of evaluating poker hands (5,6 or 7 cards) to a HandRank, which is a number from 0 to 7461 inclusive, the higher the better the hand. Inside the modules, there are more efficient methods that don’t need to convert cards to internal representations first.

Modules§

original
utils

Functions§

eval_5cards
Evalate a hand consisting of 5 cards. The cards are grouped in an array. This is quite inefficient, due to the arrays that need to be created. But convenient.
eval_6cards
Evalate a hand consisting of 6 cards. The cards are grouped in an array. This is quite inefficient, due to the arrays that need to be created. But convenient.
eval_7cards
Evalate a hand consisting of 7 cards. The cards are grouped in an array. This is quite inefficient, due to the arrays that need to be created. But convenient.