Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnoughCards = errors.New("not enough cards")
ErrNotEnoughCards is the error returned when there are not enough cards in the deck.
Functions ¶
This section is empty.
Types ¶
type Deck ¶
type Deck struct {
// contains filtered or unexported fields
}
Deck represents a deck of cards.
func (Deck) IsShuffled ¶
IsShuffled returns true if the deck is shuffled.
Click to show internal directories.
Click to hide internal directories.