Documentation ¶
Index ¶
- type CardStrength
- type Game
- type GameStrengthFunc
- type GameType
- type HandRank
- type HandStrength
- func GetHandStrength(hand []Card) HandStrength
- func GetHoldemHandStrength(board, pocket []Card) HandStrength
- func GetLowHandStrength(hand []Card, eightOrBetter bool) HandStrength
- func GetOmahaHandStrength(board, pocket []Card) HandStrength
- func GetOmahaLowHandStrength(board, pocket []Card) HandStrength
- func MakeHandStrength(rank HandRank, strength1, strength2 CardStrength, kickers uint16) HandStrength
- func MaxHandStrength(strengths []HandStrength) HandStrength
- func MinHandStrength(strengths []HandStrength) HandStrength
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardStrength ¶
type CardStrength uint8
const ( AceLow CardStrength = CardStrength(Ace) AceHigh CardStrength = CardStrength(King + 1) )
func MaxCardStrength ¶
func MaxCardStrength(strengths []CardStrength) CardStrength
func (CardStrength) Mask ¶
func (cs CardStrength) Mask() uint16
func (CardStrength) Rank ¶
func (cs CardStrength) Rank() Rank
type Game ¶
type Game struct { Name string HandSize int BoardSize int HiStrength GameStrengthFunc LoStrength GameStrengthFunc }
type GameStrengthFunc ¶
type GameStrengthFunc func(board, hand []Card) HandStrength
type HandStrength ¶
type HandStrength uint32
func GetHandStrength ¶
func GetHandStrength(hand []Card) HandStrength
func GetHoldemHandStrength ¶
func GetHoldemHandStrength(board, pocket []Card) HandStrength
func GetLowHandStrength ¶
func GetLowHandStrength(hand []Card, eightOrBetter bool) HandStrength
func GetOmahaHandStrength ¶
func GetOmahaHandStrength(board, pocket []Card) HandStrength
func GetOmahaLowHandStrength ¶
func GetOmahaLowHandStrength(board, pocket []Card) HandStrength
func MakeHandStrength ¶
func MakeHandStrength(rank HandRank, strength1, strength2 CardStrength, kickers uint16) HandStrength
func MaxHandStrength ¶
func MaxHandStrength(strengths []HandStrength) HandStrength
func MinHandStrength ¶
func MinHandStrength(strengths []HandStrength) HandStrength
func (HandStrength) Rank ¶
func (hs HandStrength) Rank() HandRank
Click to show internal directories.
Click to hide internal directories.