SudokuUtilities class
Provides various functions related to using the Sudoku Solver and Generator classes or handling the Sudoku puzzles.
Utility class which shouldn't be instantiated.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
copySudoku(
List< List< sudoku) → List<int> >List< int> > -
Returns an identical copy of the provided
sudoku
. -
hasUniqueSolution(
List< List< sudoku) → boolint> > -
Returns
true
if thesudoku
has only 1 solution. -
isSolved(
List< List< sudoku) → boolint> > -
Returns
true
if the configuration of thesudoku
is valid and there are no0
s/empty squares. -
isValidConfiguration(
List< List< sudoku) → boolint?> > -
Returns
true
if the configuration of thesudoku
follows the rules of Sudoku. -
makeNullSafe(
List< List< sudoku) → List<int?> >List< int> > -
Returns a null safe copy of provided
sudoku
to make it usable. -
printSudoku(
List< List< sudoku) → voidint> > -
Prints the
sudoku
in a readable format to the console. Zeroes are represented as-
. -
to1D(
List< List< sudoku) → List<int> >int> -
Returns a copy of the provided
sudoku
as a 1 Dimensional List. -
to2D(
List< int> sudoku) → List<List< int> > -
Returns a copy of the provided
sudoku
as a 2 DimensionalList
which is the standard format.