Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscardPile ¶
type DiscardPile struct {
Cards *arraystack.Stack
}
func NewDiscardPile ¶
func NewDiscardPile() *DiscardPile
func (*DiscardPile) AddCard ¶
func (d *DiscardPile) AddCard(c Card)
func (*DiscardPile) Peek ¶
func (d *DiscardPile) Peek() Card
if nil is returned, the discard pile is empty
func (*DiscardPile) RemoveCard ¶
func (d *DiscardPile) RemoveCard() Card
func (*DiscardPile) Size ¶
func (d *DiscardPile) Size() int
func (*DiscardPile) TakeAll ¶
func (d *DiscardPile) TakeAll() []Card
type PlayerHand ¶
type PlayerHand struct {
Cards []Card
}
func (*PlayerHand) AddCard ¶
func (h *PlayerHand) AddCard(c Card)
func (*PlayerHand) AddCards ¶
func (h *PlayerHand) AddCards(cards []Card)
func (*PlayerHand) RemoveCard ¶
func (h *PlayerHand) RemoveCard(i int) Card
Click to show internal directories.
Click to hide internal directories.