Skip to content

Commit

Permalink
Adicionar exemplo
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Aug 21, 2020
1 parent 96ef488 commit d9b9c8a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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');
}
}

0 comments on commit d9b9c8a

Please sign in to comment.