fludoku library
Generates and solves Sudoku puzzles with dimensions 4, 9 (default), 16, or 25.
Classes
- Board
- A Sudoku puzzle Board.
Enums
Functions
-
findSolutions(
Board puzzle, {FindSolutionsProgress? progressCallback, int maxSolutions = 1}) → List< Board> -
Finds solution(s) for a given
puzzleboard. -
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.
progressis expected to be an integer between 0 and 100. - GeneratorProgress = void Function({int current, int total})