Solver class

Puzzle Solver class which implements solving and validation functionality Implementation based on my previous project; Java Sudoku https://github.com/AlvinRamoutar/Sudoku

Constructors

Solver({Grid solvedBoard})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

checkAmbiguity(Grid grid) Future<bool>
Initializes an ambiguity check with a supplied grid, and returns true if ambiguous
consistent(Grid board, Position pos, int c) bool
Validates board consistency from the position of a cell into an index Used by solve and checkAmbiguity to validate c. Will return true if c does not violate board.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
solve() Future<Grid>
solvedBoard() Grid
solveFromGrid(Grid grid) Future<Grid>
toString() String
A string representation of this object. [...]
inherited

Operators

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