aboutsummaryrefslogtreecommitdiff
path: root/old/2021-05-26-before-restyle/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'old/2021-05-26-before-restyle/main.c')
-rw-r--r--old/2021-05-26-before-restyle/main.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/old/2021-05-26-before-restyle/main.c b/old/2021-05-26-before-restyle/main.c
new file mode 100644
index 0000000..cb61526
--- /dev/null
+++ b/old/2021-05-26-before-restyle/main.c
@@ -0,0 +1,24 @@
1#include <stdio.h>
2#include "cube.h"
3#include "moves.h"
4#include "solve.h"
5#include "transformations.h"
6
7int main() {
8 init_ttables(true, true);
9 init_aux_tables();
10 init_transformations(true, true);
11
12
13 char moves[100] = "R' D2 F2 U2 R F2 R D2 L' R2 D2 F D' L' U' B R' D' U R' B";
14 NissMove alg[100];
15 read_moves(moves, alg, 100);
16 Cube cube = apply_alg(alg, (Cube){0});
17 print_cube(transform_cube(rd, cube));
18
19 transform_alg(rd, alg);
20 print_alg(alg);
21
22
23 return 0;
24}

Generated with cgit - Back to sebastiano.tronto.net