Documentation ¶
Index ¶
- type Board
- func (b *Board) AddCursor(pos Pos)
- func (b *Board) Bounds() (xmin, xmax, ymin, ymax int)
- func (b *Board) Cursors() []Pos
- func (b *Board) DeleteCursor(pos Pos)
- func (b *Board) Dump()
- func (b *Board) DumpBox(xmin, xmax, ymin, ymax int, focus Pos)
- func (b *Board) DumpWithFocus(focus Pos)
- func (b *Board) Get(pos Pos) CellType
- func (b *Board) GetACursor() (Pos, bool)
- func (b *Board) GetWithDefault(pos Pos, def CellType) CellType
- func (b *Board) InBounds(pos Pos) bool
- func (b *Board) Score() (numFlow, numFilled int)
- func (b *Board) Set(pos Pos, cell CellType)
- func (b *Board) ToImage() image.Image
- func (b *Board) Visit(want CellType, visitor func(pos Pos))
- type CellType
- type InputLine
- type Pos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
func (*Board) DeleteCursor ¶
func (*Board) DumpWithFocus ¶
func (*Board) GetACursor ¶
Click to show internal directories.
Click to hide internal directories.