Documentation
¶
Index ¶
Constants ¶
View Source
const ( // H1Win constant H1Win = OUTCOME(iota) // H2Win constant H2Win = OUTCOME(iota) // Draw constant Draw = OUTCOME(iota) )
View Source
const ( // HighCard constant HighCard = RANK(iota) // OnePair constant OnePair = RANK(iota) // TwoPair constant TwoPair = RANK(iota) // ThreeOfAKind constant ThreeOfAKind = RANK(iota) // Straight constant Straight = RANK(iota) // Flush constant Flush = RANK(iota) // FullHouse constant FullHouse = RANK(iota) // FourOfAKind constant FourOfAKind = RANK(iota) // StraightFlush constant StraightFlush = RANK(iota) // RoyalFlush constant RoyalFlush = RANK(iota) )
Variables ¶
This section is empty.
Functions ¶
func Showdown ¶
Showdown determines the winner of two to many hands It multiplexes hand comparison (which is a binary operation) over many hands. It returns a slice of the winning index/ drawing indexes
func ToHandType ¶
ToHandType where a hand type is a string of format AKs AA 89o
Types ¶
Click to show internal directories.
Click to hide internal directories.