sudoku_dart 0.1.0 copy "sudoku_dart: ^0.1.0" to clipboard
sudoku_dart: ^0.1.0 copied to clipboard

outdated

sudoku_dart dart lib

example/lib/main.dart

import 'package:sudoku_dart/sudoku_dart.dart';

void main(){

  // resolve sudoku puzzle
  List<int> puzzle = [
    -1,-1,8,    9,-1,6,     -1,-1,5,
    -1,4,3,     -1,-1,-1,   -1,2,-1,
    -1,-1,-1,   -1,-1,-1,   -1,-1,-1,

    -1,-1,4,    -1,-1,-1,   9,-1,-1,
    5,-1,-1,    -1,4,-1,    6,8,-1,
    -1,-1,-1,   1,-1,-1,    -1,-1,-1,

    2,-1,-1,    -1,8,-1,    -1,7,-1,
    -1,-1,-1,   -1,3,4,     1,-1,-1,
    -1,6,-1,    -1,-1,9,    -1,-1,-1,
  ];

  Sudoku sudoku_dart = Sudoku(puzzle);
  sudoku_dart.debug();

  // sudo generator with expert level
  Sudoku newSudoku = Sudoku.generator(LEVEL.EXPERT);
  newSudoku.debug();

}
5
likes
25
points
29
downloads

Publisher

verified publisherdart.sevlow.com

Weekly Downloads

sudoku_dart dart lib

License

BSD-3-Clause (license)

More

Packages that depend on sudoku_dart