From d9f40f59c9f14bef7f87c11da7494f7dcf1457b4 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 10 Jun 2024 22:22:03 +0200 Subject: Started cube.h refactor --- src/cube_generic.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cube_generic.h') 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); _static bool iserror(cube_t); _static cube_t applymoves(cube_t, const char *); _static cube_t applytrans(cube_t, const char *); +_static cube_t frommoves(const char *); _static int permsign(uint8_t *, int); _static cube_t move(cube_t, uint8_t); @@ -164,6 +165,12 @@ applymoves_error: return zero; } +_static cube_t +frommoves(const char *buf) +{ + return applymoves(solved, buf); +} + _static cube_t applytrans(cube_t cube, const char *buf) { -- cgit v1.3