Documentation ¶
Index ¶
- func Compare(a, b *Hand) int
- func CompareWithJoker(a, b *Hand) int
- func CompareWithStrength(a, b *Hand, strength func(*Hand) int, cardStrengths map[rune]int) int
- func TotalWinnings(input []string) int
- func TotalWinningsWithCompareFunc(input []string, compareFunc func(a, b *Hand) int) int
- func TotalWinningsWithJoker(input []string) int
- type Hand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareWithJoker ¶
CompareWithJoker returns the result of comparing the given hands.
func CompareWithStrength ¶
CompareWithStrength returns the result of comparing the given hands.
func TotalWinnings ¶
TotalWinnings returns the total winnings for the given input.
func TotalWinningsWithJoker ¶
TotalWinningsWithJoker returns the total winnings for the given input.
Types ¶
Click to show internal directories.
Click to hide internal directories.