aboutsummaryrefslogtreecommitdiff
path: root/experiments
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-09-08 18:28:30 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-09-08 18:28:30 +0200
commit4d08bf731a099de2d174c73489636e1a12935aee (patch)
treec751858cb6e33172c97a1123432f7c59d7d94d7e /experiments
parentc5dfc897160bc9bbc6a91c77b5d58d421fd1cfe1 (diff)
downloadnissy-core-4d08bf731a099de2d174c73489636e1a12935aee.tar.gz
nissy-core-4d08bf731a099de2d174c73489636e1a12935aee.zip
New implementation, moved old to experiments/
Diffstat (limited to '')
-rw-r--r--experiments/cube.c (renamed from src/cube.c)0
-rw-r--r--experiments/cube.h27
2 files changed, 27 insertions, 0 deletions
diff --git a/src/cube.c b/experiments/cube.c
index 4372b5e..4372b5e 100644
--- a/src/cube.c
+++ b/experiments/cube.c
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