aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/coord/eo.h
blob: 46a6f70302018cd580c5750f783d9ad595c6d9be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
STATIC uint64_t coordinate_eo_coord(cube_t, const void *);
STATIC cube_t coordinate_eo_cube(uint64_t, const void *);
STATIC uint64_t coordinate_eo_gendata(void *);

STATIC coord_t coordinate_eo = {
	.name = "EO",
	.coord = &coordinate_eo_coord,
	.cube = &coordinate_eo_cube,
	.gendata = coordinate_eo_gendata,
	.max = POW_2_11,
	.trans_mask = TM_ALLTRANS,
	.moves_mask = MM_ALLMOVES,
	.axistrans = {
		[AXIS_UD] = TRANS_FDr,
		[AXIS_RL] = TRANS_URr,
		[AXIS_FB] = TRANS_UFr,
	},
	.is_admissible = &are_lastmoves_singlecw,
};

STATIC uint64_t
coordinate_eo_coord(cube_t c, const void *data)
{
	return (uint64_t)coord_eo(c);
}

STATIC cube_t
coordinate_eo_cube(uint64_t c, const void *data)
{
	cube_t cube = SOLVED_CUBE;
	set_eo(&cube, (int64_t)c);
	return cube;
}

STATIC size_t
coordinate_eo_gendata(void *data)
{
	return 0;
}

Generated with cgit - Back to sebastiano.tronto.net