Documentation ¶
Overview ¶
Package deck provides api for creating and using a deck of 24 cards.
Index ¶
Constants ¶
View Source
const Size = 24
Size is the number of cards in a deck.
Variables ¶
View Source
var ( OrderedDeck []string Points map[byte]int )
OrderedDeck is the initial full ordered deck. Points is a map connecting each card with its points.
Functions ¶
func AreTheSameSuit ¶
AreTheSameSuit returns true if card1 and card2 are from the same suit.
func HasHigherRank ¶
HasHigherRank returns true if the rank of card1 is higher than the rank of card2.
Types ¶
Click to show internal directories.
Click to hide internal directories.