solve abstract method

Solution? solve(
  1. Cube cube, {
  2. int maxDepth = defaultMaxDepth,
  3. Duration timeout = defaultTimeout,
})

Returns the Solution for the cube with a maximum of maxDepth moves or null if the timeout is exceeded or there is no Solution.

Returns Solution.empty if the cube is already solved.

Implementation

Solution? solve(
  Cube cube, {
  int maxDepth = defaultMaxDepth,
  Duration timeout = defaultTimeout,
});