aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-12-19 07:32:09 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-12-19 07:32:09 +0100
commitde04d37e8520079f5bba3b1a87d42313297543db (patch)
treedcbf454949def970c428a9b4627ae04e0e9ad1fb /src/core
parentd5c60236c06e67e8da45e63843b37e5d619e9d7b (diff)
downloadnissy-core-de04d37e8520079f5bba3b1a87d42313297543db.tar.gz
nissy-core-de04d37e8520079f5bba3b1a87d42313297543db.zip
Add coordinate solvers for cornersh48-corner-estimate
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cube.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/cube.h b/src/core/cube.h
index 3ba282e..9e79dda 100644
--- a/src/core/cube.h
+++ b/src/core/cube.h
@@ -1,3 +1,5 @@
1STATIC bool cube_true(cube_t);
2
1STATIC cube_t cubefromarray(uint8_t [static 8], uint8_t [static 12]); 3STATIC cube_t cubefromarray(uint8_t [static 8], uint8_t [static 12]);
2STATIC bool isconsistent(oriented_cube_t); 4STATIC bool isconsistent(oriented_cube_t);
3STATIC bool issolvable(oriented_cube_t); 5STATIC bool issolvable(oriented_cube_t);
@@ -19,6 +21,13 @@ STATIC uint8_t b32tocorner(char);
19STATIC char edgetob32(uint8_t); 21STATIC char edgetob32(uint8_t);
20STATIC char cornertob32(uint8_t); 22STATIC char cornertob32(uint8_t);
21 23
24/* Used e.g. by the CORNERS coordinate, when a function pointer is needed */
25STATIC bool
26cube_true(cube_t cube)
27{
28 return true;
29}
30
22STATIC cube_t 31STATIC cube_t
23cubefromarray(uint8_t c[static 8], uint8_t e[static 12]) 32cubefromarray(uint8_t c[static 8], uint8_t e[static 12])
24{ 33{

Generated with cgit - Back to sebastiano.tronto.net