Module functions

Source

Traits§

PQLFn
Trait for functions to be used in vm
PQLFnArgs
PQLFnEval
PQLFnRtn

Functions§

best_hi_rating
board_in_range
board_ranks
board_suit_count
duplicated_board_ranks
duplicated_hand_ranks
equity
exact_flop_hand_category
exact_hand_type
five_card_hi_hand_number
Note: the number is for 5 card hand (the set of possible rankings on river may be smaller than this.)
flop_hand_category
Panics
flushing_board
four_flush
hand_board_intersections
hand_ranks
hand_type
has_second_board_rank
Panics
has_top_board_rank
hi_rating
in_range
intersecting_hand_ranks
max_rank
min_flop_hand_category
min_hand_type
min_hi_rating
min_outs_to_hand_type
min_rank
monotone_board
nonintersecting_hand_ranks
nth_rank
nut_hi
It determines whether a specified player has the “nuts” (the best possible hand) on a given street in poker. For example, calling nutHi(p1, flop) returns true if player one (p1) holds the hand 'Qs5s' and the community board shows 'JsKsAs'. It’s important to note that the function assumes all dead cards are known. Thus, nutHi(p1, flop) for p1='As2s' and board='KsQsJs' would initially return false. However, if a dead card 'Ts' is introduced, the function would then return true.
nut_hi_for_hand_type
It evaluates whether a specified player holds the best possible hand for their specific hand type on the given street. For example, nutHiForHandType(p1, flop) returns true if player one (p1) has the hand 'AsKh' and the flop shows 'AdTd2d', because p1 holds the top possible hand within the “one pair” category.
nut_hi_outs
outs_to_hand_type
It calculates how many cards would enhance the current hand to form the desired hand type, provided it’s superior to the existing hand.
overpair
paired_board
pocket_pair
rainbow_board
rank_count
rate_hi_hand
river_card
scoops
straight_board
three_flush
ties_hi
to_card
to_five_cards
to_rank
turn_card
twotone_board
winning_hand_type
wins_hi