diff options
Diffstat (limited to 'src/solvers/coord/eo.h')
| -rw-r--r-- | src/solvers/coord/eo.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/solvers/coord/eo.h b/src/solvers/coord/eo.h new file mode 100644 index 0000000..d6604d9 --- /dev/null +++ b/src/solvers/coord/eo.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | STATIC uint64_t coordinate_eo_coord(cube_t, const void *); | ||
| 2 | STATIC cube_t coordinate_eo_cube(uint64_t, const void *); | ||
| 3 | STATIC uint64_t coordinate_eo_gendata(void *); | ||
| 4 | |||
| 5 | STATIC coord_t coordinate_eo = { | ||
| 6 | .name = "EO", | ||
| 7 | .coord = &coordinate_eo_coord, | ||
| 8 | .cube = &coordinate_eo_cube, | ||
| 9 | .gendata = coordinate_eo_gendata, | ||
| 10 | .max = POW_2_11, | ||
| 11 | .trans_mask = TM_ALLTRANS, | ||
| 12 | .moves_mask = MM_ALLMOVES, | ||
| 13 | }; | ||
| 14 | |||
| 15 | STATIC uint64_t | ||
| 16 | coordinate_eo_coord(cube_t c, const void *data) | ||
| 17 | { | ||
| 18 | return (uint64_t)coord_eo(c); | ||
| 19 | } | ||
| 20 | |||
| 21 | STATIC cube_t | ||
| 22 | coordinate_eo_cube(uint64_t c, const void *data) | ||
| 23 | { | ||
| 24 | cube_t cube = SOLVED_CUBE; | ||
| 25 | set_eo(&cube, (int64_t)c); | ||
| 26 | return cube; | ||
| 27 | } | ||
| 28 | |||
| 29 | STATIC size_t | ||
| 30 | coordinate_eo_gendata(void *data) | ||
| 31 | { | ||
| 32 | return 0; | ||
| 33 | } | ||
