Documentation
¶
Index ¶
- type Card
- type Deck
- func (d *Deck) Add(card *Card)
- func (d *Deck) AddAt(card *Card, index int) error
- func (d *Deck) BottomIndex() int
- func (d *Deck) Cut()
- func (d *Deck) CutAt(index int) error
- func (d *Deck) Draw() *Card
- func (d *Deck) DrawAt(index int) (*Card, error)
- func (d *Deck) Exists(card *Card) bool
- func (d *Deck) RemoveJoker()
- func (d *Deck) Shuffle()
- func (d *Deck) TopIndex() int
- type Suit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
Card is struct
func (*Card) GetStrNumber ¶
GetStrNumber return card string number. example 13 -> "K"
type Deck ¶
type Deck struct {
Cards []Card
}
Deck is card set struct.
func NewDeckWithSuitSet ¶
NewDeckWithSuitSet returns new deck maked only suit of arg
func (*Deck) BottomIndex ¶
BottomIndex is return bottom of the deck. The bottom is last index of slice.
Click to show internal directories.
Click to hide internal directories.