Crate open_pql

Source

Modules§

constants
functions
pql_parser
prim
range_parser
vm

Structs§

Board
Represents a poker board (flop, turn, river)
Card
Single Card
Card64
Card Set
CardIdx
Card index representation (0-51)
CardIter
DeadCards
HandIter
HandN
A hand of N cards
HandRatingView
a struct that decodes i16 to human readable Hand Ranking
PQLFlopHandCategory
PQLFraction
PQLHandType
PQLHiRating
Hand Ranking
PQLLoRating
PQLPlayer
Rank16
Rank Set
RanksIter
StatementsRunner
Suit4
Suit Masks
SuitMapping
Maps original suits to isomorphic suits for normalization

Enums§

FlopHandCategory
HandType
HandTypeOrd
A enum that handles strength of hand type for different games
InternalError
PQLError
PQLGame
PQLRange
PQLStreet
PQLType
ParseError
Rank
Enum for Ranks
RuntimeError
Suit
Enum for Suits
TypeError

Constants§

COMB_TWO_RANKS_LEN
Number of combinations of two ranks
IDX_RIVER
Index of the river card in a board array
IDX_TURN
Index of the turn card in a board array
MASK16_RANKS_SHORT
Mask for shortdeck ranks in Rank16
MASK64_ALL_SHORT
Mask for all suits in Card64
MASK64_C
Mask for clubs in Card64
MASK64_D
Mask for diamonds in Card64
MASK64_H
Mask for hearts in Card64
MASK64_S
Mask for spades in Card64
N_FLOP
Number of cards in a flop
N_RIVER
Number of cards in a flop + turn + river
N_TURN
Number of cards in a flop + turn

Functions§

eval_holdem7
eval_omaha9
eval_shortdeck7
init_vm
Panics
to_suitvar_char
Converts a suit to its isomorphic character representation
u8_to_suit_str
u16_to_rank_str

Type Aliases§

CardCount
Card count type
Flop
Hand
HandRatingInt
Loc
LocInfo
PQLBoardRange
PQLBoolean
PQLCard
PQLCardCount
PQLDouble
PQLEquity
PQLInteger
PQLLong
PQLNumeric
PQLPlayerCount
PQLRank
PQLRankSet
PQLString
PQLSuit
PQLSuitSet