From d9b9c8a719b2591046c6bc09a2e0a4c85e2c1c79 Mon Sep 17 00:00:00 2001 From: tiagohm Date: Fri, 21 Aug 2020 19:49:56 -0300 Subject: [PATCH] Adicionar exemplo --- example/main.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 example/main.dart diff --git a/example/main.dart b/example/main.dart new file mode 100644 index 0000000..97da3dd --- /dev/null +++ b/example/main.dart @@ -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'); + } +}