cuber 0.4.0 cuber: ^0.4.0 copied to clipboard
Dart implementation of Herbert Kociemba's two-phase algorithm for solving Rubik's Cube.
import 'package:cuber/cuber.dart';
void main() async {
const d = 'BLRRULDLRFDDBRFLFRFFUBFULRDBBFUDRFRBLDRULDUFUBBDDBLUUL';
final cube = Cube.from(d);
await for (final s in cube.solveDeeply()) {
print('[${s.elapsedTime}]: (${s.length} moves) $s');
}
}