Documentation ¶
Index ¶
- type Tableau
- func (t Tableau) Expected() int
- func (t Tableau) FirstHidden() (int, int)
- func (t Tableau) Get(vRow, hRow int) (tableauCard, error)
- func (t Tableau) HighestVisible() (int, int, int)
- func (t Tableau) Out() bool
- func (t Tableau) Print(c cards.Cards)
- func (t Tableau) PrintDebug(c cards.Cards)
- func (t *Tableau) Replace(vRow, hRow, rank int, c *cards.Cards) error
- func (t *Tableau) Reveal(vRow, hRow int, c *cards.Cards) error
- func (t *Tableau) RevealAll(c *cards.Cards)
- func (t Tableau) Score() (int, int, int)
- func (t *Tableau) SetRank(vRow, hRow, rank int) error
- type VRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tableau ¶
type Tableau []VRow
func (Tableau) FirstHidden ¶
FirstHidden returns the locatio of the first hidden card
func (Tableau) Get ¶
Get returns the card at the given location or an error if that is out of bounds
func (Tableau) HighestVisible ¶
HighestVisible returns the rank and location of the highest visible card
func (Tableau) PrintDebug ¶
Click to show internal directories.
Click to hide internal directories.