diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-19 07:32:09 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-19 07:32:09 +0100 |
| commit | de04d37e8520079f5bba3b1a87d42313297543db (patch) | |
| tree | dcbf454949def970c428a9b4627ae04e0e9ad1fb /src/core | |
| parent | d5c60236c06e67e8da45e63843b37e5d619e9d7b (diff) | |
| download | nissy-core-h48-corner-estimate.tar.gz nissy-core-h48-corner-estimate.zip | |
Add coordinate solvers for cornersh48-corner-estimate
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/cube.h | 9 |
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 @@ | |||
| 1 | STATIC bool cube_true(cube_t); | ||
| 2 | |||
| 1 | STATIC cube_t cubefromarray(uint8_t [static 8], uint8_t [static 12]); | 3 | STATIC cube_t cubefromarray(uint8_t [static 8], uint8_t [static 12]); |
| 2 | STATIC bool isconsistent(oriented_cube_t); | 4 | STATIC bool isconsistent(oriented_cube_t); |
| 3 | STATIC bool issolvable(oriented_cube_t); | 5 | STATIC bool issolvable(oriented_cube_t); |
| @@ -19,6 +21,13 @@ STATIC uint8_t b32tocorner(char); | |||
| 19 | STATIC char edgetob32(uint8_t); | 21 | STATIC char edgetob32(uint8_t); |
| 20 | STATIC char cornertob32(uint8_t); | 22 | STATIC char cornertob32(uint8_t); |
| 21 | 23 | ||
| 24 | /* Used e.g. by the CORNERS coordinate, when a function pointer is needed */ | ||
| 25 | STATIC bool | ||
| 26 | cube_true(cube_t cube) | ||
| 27 | { | ||
| 28 | return true; | ||
| 29 | } | ||
| 30 | |||
| 22 | STATIC cube_t | 31 | STATIC cube_t |
| 23 | cubefromarray(uint8_t c[static 8], uint8_t e[static 12]) | 32 | cubefromarray(uint8_t c[static 8], uint8_t e[static 12]) |
| 24 | { | 33 | { |
