Versions in this module Expand all Collapse all v0 v0.1.1 Jan 14, 2020 Changes in this version + const Invalid + const SymbolClubs + const SymbolDiamonds + const SymbolHearts + const SymbolJoker + const SymbolSpades + var AllFaces = []CardFace + var AllSuits = []CardSuit + var StandardCards = Cards + var StandardFaces = []CardFace + var StandardSuits = []CardSuit + type Card struct + Face CardFace + Suit CardSuit + func (c *Card) UnmarshalJSON(b []byte) error + func (c Card) Equal(b Card) bool + func (c Card) Identifier() string + func (c Card) MarshalJSON() ([]byte, error) + func (c Card) String() string + func (c Card) Value() int + type CardFace int + const Face10 + const Face2 + const Face3 + const Face4 + const Face5 + const Face6 + const Face7 + const Face8 + const Face9 + const FaceAce + const FaceJack + const FaceJoker + const FaceKing + const FaceQueen + func (f CardFace) Name() string + func (f CardFace) String() string + type CardSuit int + const SuitClubs + const SuitDiamonds + const SuitHearts + const SuitJoker + const SuitSpades + func (s CardSuit) Name() string + func (s CardSuit) String() string + func (s CardSuit) Symbol() string + type Cards []Card + func (c Cards) Contains(card Card) bool + func (c Cards) Copy() Cards + func (c Cards) Count(card Card) int + func (c Cards) Equal(cards Cards) bool + func (c Cards) High() Card + func (c Cards) Len() int + func (c Cards) Less(i, j int) bool + func (c Cards) Low() Card + func (c Cards) Remove(i int) Cards + func (c Cards) Reverse() Cards + func (c Cards) Sort() Cards + func (c Cards) Swap(i, j int) + type Deck struct + Cards Cards + func NewDeck(c Cards, seed int64) *Deck + func (d *Deck) Draw(count int) (cards Cards, ok bool) + func (d *Deck) Shuffle()