Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sudoku ¶
type Sudoku struct {
Cell [][]int `json:"cell"`
}
Sudoku describes a sudoku puzzle object.
func NewSudokuFromPuzzleImage ¶
func NewSudokuFromPuzzleImage(img *image.PuzzleImage, inf *classifier.Inference) (*Sudoku, error)
NewSudokuFromPuzzleImage will instantiate a new Sudoku object given a PuzzleImage object and a numocr classifier Inference object to decode the image.
func (*Sudoku) IsCompleted ¶
IsCompleted will check if all cells in the sudoku are filled in.
Click to show internal directories.
Click to hide internal directories.