Solver class abstract
Represents a Cube solver algorithm.
- Implementers
Constructors
- Solver()
-
const
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
-
solve(
Cube cube, {int maxDepth = defaultMaxDepth, Duration timeout = defaultTimeout}) → Solution? -
Returns the Solution for the
cube
with a maximum ofmaxDepth
moves ornull
if thetimeout
is exceeded or there is no Solution. -
solveDeeply(
Cube cube, {Duration timeout = defaultTimeout}) → Stream< Solution> -
Gets the
Solution
s as much as possible until the minimum number of moves is reached or thetimeout
is exceeded. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultMaxDepth → const int
- Default maximum mumber of Solution's moves.
- defaultTimeout → const Duration
- Default timeout for solve the Cube.