diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-19 07:38:05 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-19 07:38:05 +0100 |
| commit | 30d976107352ecf74c57acc1032bed6032cd3da3 (patch) | |
| tree | 665bb9940af179cbd955c57eeadf0d6af6dc31d6 /src/core/cube.h | |
| parent | f283c08db86777fe77bdf00d3d70687107a376d9 (diff) | |
| parent | de04d37e8520079f5bba3b1a87d42313297543db (diff) | |
| download | nissy-core-30d976107352ecf74c57acc1032bed6032cd3da3.tar.gz nissy-core-30d976107352ecf74c57acc1032bed6032cd3da3.zip | |
Merge branch 'h48-corner-estimate'
Diffstat (limited to 'src/core/cube.h')
| -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 | { |
