Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CombinedSuits = [8]rune{'♠', '♣', '♥', '♦', 's', 'c', 'h', 'd'}
View Source
var LetterSuits = [4]rune{'s', 'c', 'h', 'd'}
View Source
var Suits = [4]rune{'♠', '♣', '♥', '♦'}
Functions ¶
func CompareHands ¶
func CompareHands(a, b HandStrength) int
Function for comparing hands. Returns a positive value if hand a is stronger, a negative value if hand b is stronger, and 0 if both are equal
Types ¶
type Combination ¶
type Combination struct {
// contains filtered or unexported fields
}
type HandStrength ¶
func IdentifyCombinations ¶
func IdentifyCombinations(playerId int, hand []Card) (HandStrength, error)
Checks for combinations in a hand
Click to show internal directories.
Click to hide internal directories.