diff options
Diffstat (limited to 'src/cube_generic.h')
| -rw-r--r-- | src/cube_generic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cube_generic.h b/src/cube_generic.h index 6b675ee..7ff9992 100644 --- a/src/cube_generic.h +++ b/src/cube_generic.h | |||
| @@ -8,6 +8,7 @@ _static bool issolved(cube_t); | |||
| 8 | _static bool iserror(cube_t); | 8 | _static bool iserror(cube_t); |
| 9 | _static cube_t applymoves(cube_t, const char *); | 9 | _static cube_t applymoves(cube_t, const char *); |
| 10 | _static cube_t applytrans(cube_t, const char *); | 10 | _static cube_t applytrans(cube_t, const char *); |
| 11 | _static cube_t frommoves(const char *); | ||
| 11 | 12 | ||
| 12 | _static int permsign(uint8_t *, int); | 13 | _static int permsign(uint8_t *, int); |
| 13 | _static cube_t move(cube_t, uint8_t); | 14 | _static cube_t move(cube_t, uint8_t); |
| @@ -165,6 +166,12 @@ applymoves_error: | |||
| 165 | } | 166 | } |
| 166 | 167 | ||
| 167 | _static cube_t | 168 | _static cube_t |
| 169 | frommoves(const char *buf) | ||
| 170 | { | ||
| 171 | return applymoves(solved, buf); | ||
| 172 | } | ||
| 173 | |||
| 174 | _static cube_t | ||
| 168 | applytrans(cube_t cube, const char *buf) | 175 | applytrans(cube_t cube, const char *buf) |
| 169 | { | 176 | { |
| 170 | uint8_t t; | 177 | uint8_t t; |
