SudokuProblem class

Constructors

SudokuProblem()
SudokuProblem.fromBoards(List<List<int>> initialBoard, List<List<int>> currentBoard, List<List<int>> finalBoard)
SudokuProblem.fromJSON(Map<String, dynamic> json)
SudokuProblem.fromStates(SudokuState initialState, SudokuState currentState, SudokuState finalState)
SudokuProblem.withMoreHints(int hints)

Properties

boardSize int
getter/setter pair
cellSize int
getter/setter pair
currentState SudokuState
getter/setter pair
finalState SudokuState
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initialState SudokuState
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addClues(int hintOffset) → void
applyMove(int num, int row, int col) bool
checkBlockCompletion(int row, int col) bool
checkColCompletion(int col) bool
checkRowCompletion(int row) bool
isCorrect(int row, int col) bool
isInitialHint(int row, int col) bool
isLegal(int row, int col) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
solve() → void
success() bool
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

boardToString(SudokuState state) String
stateToString(SudokuState state) String