Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateSudokuGrid() error
- func IsCorner(fragment FragmentType) bool
- func IsCross(fragment FragmentType) bool
- func IsEdge(fragment FragmentType) bool
- func IsEmpty(fragment FragmentType) bool
- type Counter
- type Drawer
- type FragmentSuperType
- type FragmentType
- type GridInfo
- type Image
- type Record
Constants ¶
View Source
const ImageSize = 28
Variables ¶
View Source
var ( TestFile = path.Join(outDir, "test.dat") TrainFile = path.Join(outDir, "train.dat") )
Functions ¶
func GenerateSudokuGrid ¶
func GenerateSudokuGrid() error
func IsCorner ¶
func IsCorner(fragment FragmentType) bool
func IsCross ¶
func IsCross(fragment FragmentType) bool
func IsEdge ¶
func IsEdge(fragment FragmentType) bool
func IsEmpty ¶
func IsEmpty(fragment FragmentType) bool
Types ¶
type FragmentSuperType ¶
type FragmentSuperType uint8
const ( FragmentSuperTypeEmpty FragmentSuperType = iota FragmentSuperTypeCorner FragmentSuperTypeEdge FragmentSuperTypeCross )
func FragmentTypeToSuper ¶
func FragmentTypeToSuper(fragment FragmentType) FragmentSuperType
type FragmentType ¶
type FragmentType uint8
const ( FragmentTypeEmpty FragmentType = iota FragmentTypeCornerNW FragmentTypeCornerNE FragmentTypeCornerSE FragmentTypeCornerSW FragmentTypeEdgeN FragmentTypeEdgeE FragmentTypeEdgeS FragmentTypeEdgeW FragmentTypeCross )
type GridInfo ¶
type GridInfo struct { Fragment FragmentType FragmentSuper FragmentSuperType Train bool }
type Record ¶
type Record struct { Pic [ImageSize * ImageSize]uint8 Fragment FragmentType FragmentSuper FragmentSuperType }
Click to show internal directories.
Click to hide internal directories.