Documentation ¶
Index ¶
- Constants
- func CanPlaceOnFoundation(card *Card, foundation *Card) bool
- func CanStack(stackType StackType, from *Card, to *Card) bool
- type Card
- func (c *Card) Equals(other *Card) bool
- func (c *Card) IsBlack() bool
- func (c *Card) IsEmpty() bool
- func (c *Card) IsFoundation() bool
- func (c *Card) IsRed() bool
- func (c *Card) Label() string
- func (p *Card) String() string
- func (c *Card) SuiteString() string
- func (c *Card) ValueString() string
- func (c *Card) View(selected bool, hovered bool, stacked bool) string
- type Deck
- type Move
- type MoveHistory
- type Pallet
- type Pos
- type StackType
- type Suite
- type Value
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CanPlaceOnFoundation ¶
Types ¶
type Card ¶
func NewEmptyCard ¶
func NewEmptyCard() *Card
func (*Card) IsFoundation ¶
func (*Card) SuiteString ¶
func (*Card) ValueString ¶
type MoveHistory ¶
type MoveHistory struct {
// contains filtered or unexported fields
}
func (*MoveHistory) Pop ¶
func (h *MoveHistory) Pop() *Move
func (*MoveHistory) Push ¶
func (h *MoveHistory) Push(m *Move)
func (*MoveHistory) Size ¶
func (h *MoveHistory) Size() int
func (*MoveHistory) String ¶
func (h *MoveHistory) String() string
Click to show internal directories.
Click to hide internal directories.