sudoku_api 2.1.0 sudoku_api: ^2.1.0 copied to clipboard
sudoku_api simplifies the generation, interaction, and management of Sudoku Puzzles.
import 'package:sudoku_api/sudoku_api.dart';
void main() {
PuzzleOptions puzzleOptions = new PuzzleOptions(patternName: "winter");
Puzzle puzzle = new Puzzle(puzzleOptions);
puzzle.generate().then((_) {
print("=====================================");
print("Your puzzle, fresh off the press:");
print("-------------------------------------");
printGrid(puzzle.board());
print("=====================================");
print("Give up? Here's your puzzle solution:");
print("-------------------------------------");
printGrid(puzzle.solvedBoard());
print("=====================================");
});
}