Documentation ¶
Index ¶
- Constants
- func IsCascade(p *cards.Pos) bool
- func IsFoundation(p *cards.Pos) bool
- func IsFreeCell(p *cards.Pos) bool
- type FreeCell
- func (f *FreeCell) Deal(number int)
- func (f *FreeCell) Debug()
- func (f *FreeCell) Down()
- func (f *FreeCell) Left()
- func (f *FreeCell) Redeal()
- func (f *FreeCell) Resize(w int, h int)
- func (f *FreeCell) Right()
- func (f *FreeCell) Select()
- func (f *FreeCell) Undo()
- func (f *FreeCell) Up()
- func (f *FreeCell) View() string
- type Game
Constants ¶
View Source
const ( Suites = 4 Cascades = 8 Freecells = 4 MaxCascadeLength = 21 )
Variables ¶
This section is empty.
Functions ¶
func IsFoundation ¶
[y == -1] and [0 <= x < Suites] are foundations
func IsFreeCell ¶
[y == -1] and [Suites <= x < Freecells - 1] are freecells
Types ¶
type FreeCell ¶
type FreeCell struct {
// contains filtered or unexported fields
}
func FreeCellGame ¶
func FreeCellGame() *FreeCell
Click to show internal directories.
Click to hide internal directories.