diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-09 12:43:49 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-09 12:43:49 +0200 |
| commit | c5c5017a335208881e27fc8f72c1d0145a04622a (patch) | |
| tree | 7a1518e5b05f3fbde810fa3080c41099ba7d5ae8 /src/cube.h | |
| parent | 28ad019d62583b7e89b4e76922aa73857d5876eb (diff) | |
| download | nissy-core-c5c5017a335208881e27fc8f72c1d0145a04622a.tar.gz nissy-core-c5c5017a335208881e27fc8f72c1d0145a04622a.zip | |
Remvoed cube_fast_t and more. More cleaning up to do.
Diffstat (limited to 'src/cube.h')
| -rw-r--r-- | src/cube.h | 17 |
1 files changed, 0 insertions, 17 deletions
| @@ -25,23 +25,6 @@ you operate on the cube only via the functions provided below, you don't | |||
| 25 | need to worry about this. | 25 | need to worry about this. |
| 26 | ******************************************************************************/ | 26 | ******************************************************************************/ |
| 27 | 27 | ||
| 28 | typedef struct { | ||
| 29 | uint8_t corner[8]; | ||
| 30 | uint8_t edge[12]; | ||
| 31 | } cube_t; | ||
| 32 | |||
| 33 | /* Returns a copy of the solved cube */ | ||
| 34 | cube_t solvedcube(void); | ||
| 35 | |||
| 36 | /* Basic checks on the cube */ | ||
| 37 | bool isconsistent(cube_t); | ||
| 38 | bool issolvable(cube_t); | ||
| 39 | bool issolved(cube_t); | ||
| 40 | bool equal(cube_t, cube_t); | ||
| 41 | |||
| 42 | /* All functions can return an error value, use iserror() to check this */ | ||
| 43 | bool iserror(cube_t); | ||
| 44 | |||
| 45 | /* Apply the second cube on the first as a move sequence */ | 28 | /* Apply the second cube on the first as a move sequence */ |
| 46 | cube_t compose(cube_t, cube_t); | 29 | cube_t compose(cube_t, cube_t); |
| 47 | 30 | ||
