aboutsummaryrefslogtreecommitdiff
path: root/old/2021-06-02-cleanedup/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--old/2021-06-02-cleanedup/main.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/old/2021-06-02-cleanedup/main.c b/old/2021-06-02-cleanedup/main.c
new file mode 100644
index 0000000..fca5e3c
--- /dev/null
+++ b/old/2021-06-02-cleanedup/main.c
@@ -0,0 +1,35 @@
1#include <stdio.h>
2#include "cube.h"
3#include "steps.h"
4
5int main() {
6 Alg algo;
7 AlgList *sols;
8 Cube cube;
9 SolveOptions opts;
10
11 init();
12
13 algo = new_alg("R U R' F");
14 cube = apply_alg(algo, (Cube){0});
15
16 print_cube(apply_trans(rd, cube));
17
18 opts = (SolveOptions) {
19 .min_moves = 0,
20 .max_moves = 5,
21 .optimal_only = true,
22 .max_solutions = 3,
23 .can_niss = false,
24 .moveset = standard_moveset,
25 .pre_trans = fu
26 };
27 sols = solve(cube, step_eofb, opts);
28 if (sols->len == 0)
29 fprintf(stderr, "No solution found\n");
30 else
31 print_alg(sols->first->alg);
32
33
34 return 0;
35}

Generated with cgit - Back to sebastiano.tronto.net