aboutsummaryrefslogtreecommitdiff
path: root/old/2021-05-26-before-restyle/transformations.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--old/2021-05-26-before-restyle/transformations.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/old/2021-05-26-before-restyle/transformations.h b/old/2021-05-26-before-restyle/transformations.h
new file mode 100644
index 0000000..c673257
--- /dev/null
+++ b/old/2021-05-26-before-restyle/transformations.h
@@ -0,0 +1,34 @@
1#ifndef TRANSFORMATIONS_H
2#define TRANSFORMATIONS_H
3
4#include <stdio.h>
5#include <stdbool.h>
6#include <stdint.h>
7#include "cube.h"
8#include "moves.h"
9#include "utils.h"
10
11#define NTRANS (mirror+1)
12
13/* Letters indicate top and front centers
14 * Mirror is wrt rl
15 * Lowercase letter to distinguish from pieces */
16
17typedef enum {
18 uf, ur, ub, ul,
19 df, dr, db, dl,
20 rf, rd, rb, ru,
21 lf, ld, lb, lu,
22 fu, fr, fd, fl,
23 bu, br, bd, bl,
24 mirror,
25} Transformation;
26
27void print_transformation(Transformation t);
28
29Cube transform_cube(Transformation t, Cube cube);
30void transform_alg(Transformation t, NissMove *alg); /* Applied in-place */
31
32void init_transformations(bool read, bool write);
33
34#endif

Generated with cgit - Back to sebastiano.tronto.net