package
Version:
v0.0.0-...-a2ff8f4
Opens a new window with list of versions in this module.
Published: Nov 23, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Core struct {
Grid [9][9]int `json:"grid"`
Task [9][9]int `json:"task"`
}
Create a new instance of Sudoku Core
func (sc *Core) Generate()
Generate a new Sudoku 9x9 grid
func (sc *Core) Prepare(fillFactor int)
Prepare a new Sudoku task based on already generated grid
Verify a current Sudoku task
type VerificationResult struct {
IsValid bool `json:"isValid"`
Position string `json:"position"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.