sudoku_api 2.1.0 copy "sudoku_api: ^2.1.0" to clipboard
sudoku_api: ^2.1.0 copied to clipboard

sudoku_api simplifies the generation, interaction, and management of Sudoku Puzzles.

example/example.dart

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("=====================================");
  });
}
23
likes
130
points
421
downloads

Publisher

verified publisheralvinr.ca

Weekly Downloads

sudoku_api simplifies the generation, interaction, and management of Sudoku Puzzles.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, tuple, uuid

More

Packages that depend on sudoku_api