diff options
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 | ||
