From 08efbd62ef956327924aaea1fcfa97fde4dc1678 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 1 Nov 2023 19:26:09 +0100 Subject: Reworked moves and transformations, moved some stuff --- old/manualsimd/cube.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 old/manualsimd/cube.h (limited to 'old/manualsimd/cube.h') diff --git a/old/manualsimd/cube.h b/old/manualsimd/cube.h new file mode 100644 index 0000000..b916f96 --- /dev/null +++ b/old/manualsimd/cube.h @@ -0,0 +1,27 @@ +typedef enum { + U, U2, U3, D, D2, D3, + R, R2, R3, L, L2, L3, + F, F2, F3, B, B2, B3 +} move_t; +typedef struct { + uint64_t e; + uint64_t c; +} cube_t; + +extern cube_t solvedcube; +extern cube_t errorcube; + +bool isconsistent(cube_t); +bool issolved(cube_t); + +cube_t readcube(char *); +void writecube(cube_t, char *); + +int readmoves(char *, move_t *); +void writemoves(move_t *, int, char *); + +cube_t move(cube_t, move_t); + +/* +cube_t inverse(cube_t); +*/ -- cgit v1.3