aboutsummaryrefslogtreecommitdiff
path: root/experiments/cube.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--experiments/cube.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/experiments/cube.h b/experiments/cube.h
new file mode 100644
index 0000000..b916f96
--- /dev/null
+++ b/experiments/cube.h
@@ -0,0 +1,27 @@
1typedef enum {
2 U, U2, U3, D, D2, D3,
3 R, R2, R3, L, L2, L3,
4 F, F2, F3, B, B2, B3
5} move_t;
6typedef struct {
7 uint64_t e;
8 uint64_t c;
9} cube_t;
10
11extern cube_t solvedcube;
12extern cube_t errorcube;
13
14bool isconsistent(cube_t);
15bool issolved(cube_t);
16
17cube_t readcube(char *);
18void writecube(cube_t, char *);
19
20int readmoves(char *, move_t *);
21void writemoves(move_t *, int, char *);
22
23cube_t move(cube_t, move_t);
24
25/*
26cube_t inverse(cube_t);
27*/

Generated with cgit - Back to sebastiano.tronto.net