fludoku library

Generates and solves Sudoku puzzles with dimensions 4, 9 (default), 16, or 25.

Classes

Board
A Sudoku puzzle Board.

Functions

findSolutions(Board puzzle, {FindSolutionsProgress? progressCallback, int maxSolutions = 1}) List<Board>
Finds solution(s) for a given puzzle board.
generateBoard({PuzzleDifficulty level = PuzzleDifficulty.medium, int dimension = 9, int timeoutSecs = 15, GeneratorProgress? onProgress}) → (Board?, String?)
Generates a new Sudoku board with the specified difficulty level and dimensions.

Typedefs

FindSolutionsProgress = void Function(int progress)
Callback type for Solver to report its progress searching for solutions. progress is expected to be an integer between 0 and 100.
GeneratorProgress = void Function({int current, int total})