solve method

Solution? solve({
  1. Solver solver = kociemba,
  2. int maxDepth = Solver.defaultMaxDepth,
  3. Duration timeout = Solver.defaultTimeout,
})

Returns the Solution for the Cube using the solver algorithm or null if the timeout is exceeded or there is no Solution.

Returns Solution.empty if the Cube is already solved.

Implementation

Solution? solve({
  Solver solver = kociemba,
  int maxDepth = Solver.defaultMaxDepth,
  Duration timeout = Solver.defaultTimeout,
}) {
  return solver.solve(this, maxDepth: maxDepth, timeout: timeout);
}