Documentation
¶
Index ¶
- type Block
- type Cell
- type Column
- type ExtendedCell
- type ExtendedGrid
- func (eg *ExtendedGrid) Clone() *ExtendedGrid
- func (eg *ExtendedGrid) GetAllowedCount() int
- func (eg *ExtendedGrid) GetFreeCount() int
- func (eg *ExtendedGrid) GetGrid() *Grid
- func (eg *ExtendedGrid) GetSEC() []*ExtendedCell
- func (eg *ExtendedGrid) SetNull()
- func (eg *ExtendedGrid) UpdateAll()
- func (eg *ExtendedGrid) UpdateN()
- func (eg *ExtendedGrid) UpdateSec()
- type Grid
- func (g *Grid) AllCells() []*Cell
- func (g *Grid) Blocks() [3][3]*Block
- func (g *Grid) Cells() [9][9]*Cell
- func (g *Grid) CheckSolved() bool
- func (g *Grid) Clone() *Grid
- func (g *Grid) Cols() [9]*Column
- func (g *Grid) Equals(o *Grid) bool
- func (g *Grid) GetNumFree() int
- func (g *Grid) GetSortedExtendedCells(used bool) []*ExtendedCell
- func (g *Grid) Print()
- func (g *Grid) Rows() [9]*Row
- func (g *Grid) ToString() string
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (*Block) GetAllowedVals ¶
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func (*Cell) GetAllowedVals ¶
func (*Cell) UnsetValue ¶
func (c *Cell) UnsetValue()
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func (*Column) GetAllowedVals ¶
type ExtendedCell ¶
type ExtendedCell struct {
// contains filtered or unexported fields
}
func NewExtendedCell ¶
func NewExtendedCell(c *Cell) *ExtendedCell
func (*ExtendedCell) GetAllowedValues ¶
func (ec *ExtendedCell) GetAllowedValues() []int
func (*ExtendedCell) GetCell ¶
func (ec *ExtendedCell) GetCell() *Cell
func (*ExtendedCell) GetNumAllowedValued ¶
func (ec *ExtendedCell) GetNumAllowedValued() int
func (*ExtendedCell) IsUsed ¶
func (ec *ExtendedCell) IsUsed() bool
func (*ExtendedCell) Update ¶
func (ec *ExtendedCell) Update()
type ExtendedGrid ¶
type ExtendedGrid struct {
// contains filtered or unexported fields
}
func NewExtendedGrid ¶
func NewExtendedGrid(g *Grid) *ExtendedGrid
func (*ExtendedGrid) Clone ¶
func (eg *ExtendedGrid) Clone() *ExtendedGrid
func (*ExtendedGrid) GetAllowedCount ¶
func (eg *ExtendedGrid) GetAllowedCount() int
func (*ExtendedGrid) GetFreeCount ¶
func (eg *ExtendedGrid) GetFreeCount() int
func (*ExtendedGrid) GetGrid ¶
func (eg *ExtendedGrid) GetGrid() *Grid
func (*ExtendedGrid) GetSEC ¶
func (eg *ExtendedGrid) GetSEC() []*ExtendedCell
func (*ExtendedGrid) SetNull ¶
func (eg *ExtendedGrid) SetNull()
func (*ExtendedGrid) UpdateAll ¶
func (eg *ExtendedGrid) UpdateAll()
func (*ExtendedGrid) UpdateN ¶
func (eg *ExtendedGrid) UpdateN()
func (*ExtendedGrid) UpdateSec ¶
func (eg *ExtendedGrid) UpdateSec()
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) CheckSolved ¶
func (*Grid) GetNumFree ¶
func (*Grid) GetSortedExtendedCells ¶
func (g *Grid) GetSortedExtendedCells(used bool) []*ExtendedCell
Click to show internal directories.
Click to hide internal directories.