diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-11 21:37:34 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-11 21:37:34 +0100 |
| commit | 3568412f8f230774d0d11d7ed1c897424f95d3ef (patch) | |
| tree | 77223792d8c925a9b1fc32b3f4341e943b5f8209 /old/2021-05-26-before-restyle/main.c | |
| parent | 67e1b5e6e6a2c917a2fe58a37a1382c982b1e5c5 (diff) | |
| download | nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.tar.gz nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.zip | |
Rewritten from scratch. Welocme nissy 2.0!
Diffstat (limited to '')
| -rw-r--r-- | old/2021-05-26-before-restyle/main.c | 24 |
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 | |||
| 7 | int 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 | } | ||
