Pokex v0.2.0 Hand View Source
Summoning poker specific rules for comparing hands.
‘Deuce-to-seven low’ rules apply which means Ace is the highest card.
Link to this section Summary
Functions
Analyses the poker hand and returns a map with the sequences, pairs and suit information
Returns the rank the hand belongs to
Resolves the rank of a hand from a hand analysis map
Returns a high level score based on the rank and relevant cards to the card
Sorts a list of hands by it’s rank
Link to this section Types
Link to this section Functions
Analyses the poker hand and returns a map with the sequences, pairs and suit information.
Sequences is a list, pairs is a list and is_same_suit is a boolean noting whether all cards are of the same suit or not.
Returns the rank the hand belongs to.
Returns an int
from 1 to 9.
1 is the highest rank and 9 is the lowest.
Resolves the rank of a hand from a hand analysis map.
Returns an int
from 1 to 9.
1 is the highest rank and 9 is the lowest.
Returns a high level score based on the rank and relevant cards to the card.
For example, for Two pairs it takes into consideration the high cards of each of the pairs.
Sorts a list of hands by it’s rank.
Highest ranking cards appear at the head of the list.