Documentation
¶
Index ¶
- func CompareCard(a, b byte) bool
- func Greater(a, b Hand) bool
- func Solve(input string) int
- type CardType
- type Hand
- func (h Hand) Frequency() map[byte]int
- func (h Hand) FrequencySortedByValue() []kv
- func (h Hand) IsFiveOfAKind() bool
- func (h Hand) IsFourOfAKind() bool
- func (h Hand) IsFullHouse() bool
- func (h Hand) IsHighCard() bool
- func (h Hand) IsOnePair() bool
- func (h Hand) IsThreeOfAKind() bool
- func (h Hand) IsTwoPair() bool
- func (h Hand) Type() CardType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareCard ¶
Types ¶
type Hand ¶
type Hand struct {
// contains filtered or unexported fields
}
func (Hand) FrequencySortedByValue ¶
func (h Hand) FrequencySortedByValue() []kv
func (Hand) IsFiveOfAKind ¶
func (Hand) IsFourOfAKind ¶
func (Hand) IsFullHouse ¶
func (Hand) IsHighCard ¶
func (Hand) IsThreeOfAKind ¶
Click to show internal directories.
Click to hide internal directories.