aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/coord/drfin.h
blob: ec645a2114bf49146401c21bab8706862ae501d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef SOLVERS_COORD_DRFIN_H
#define SOLVERS_COORD_DRFIN_H

STATIC bool is_drfin_solvable(cube_t);

STATIC multicoord_t multicoordinate_drfin = {
	.name = "DRFIN",
	.coordinates = { &coordinate_cpepe, &coordinate_drfinnoe, NULL },
	.moves_mask = MM18_DR,
	.is_solvable = is_drfin_solvable,
};

STATIC bool
is_drfin_solvable(cube_t cube)
{
	return coord_eo(cube) == 0 &&
	       coord_eo(transform_edges(cube, TRANS_URr)) == 0 &&
	       coord_co(cube) == 0 &&
	       issolvable((oriented_cube_t){.cube = cube, .orientation = 0});
}

#endif /* SOLVERS_COORD_DRFIN_H */

Generated with cgit - Back to sebastiano.tronto.net