Documentation ¶
Index ¶
- Variables
- type Board
- func (b *Board) Idx(row, col int) int
- func (s *Board) Print(w io.Writer)
- func (s *Board) PrintOneLine(w io.Writer)
- func (b *Board) ReplaceWithSingleRowString(input string, skipCandidateElimination bool)
- func (b *Board) SetValue(row, col, val int)
- func (b *Board) SolveWithModel(model []bool)
- func (b *Board) XLit(row, col int, director string) int
- func (b *Board) YLit(row, col, val int) int
Constants ¶
This section is empty.
Variables ¶
View Source
var MoveType = map[string]int{
"Left": 1,
"Up": 2,
"Right": 3,
"Down": 4,
}
View Source
var SPACE_REGEX = regexp.MustCompile(` +`)
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct { Size int Size2 int Row int Column int MaxValue int TotalMove int Candidates []bool // lit Lookup []int // idx NumCandidates int // contains filtered or unexported fields }
func NewFromArray ¶
func NewFromString ¶
Parse newline and space separated sudoku problem 0 0 3 ... 9 0 0 ... 0 0 1 ... ...
func (*Board) PrintOneLine ¶
func (*Board) ReplaceWithSingleRowString ¶
func (*Board) SolveWithModel ¶
Click to show internal directories.
Click to hide internal directories.