aboutsummaryrefslogtreecommitdiff
path: root/src/cube.h
blob: d30c1d490267778840498493a53d82ef4ffcf325 (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
/* TODO: change cube to const char [static 22], or const char * */
/* TODO: return error code */
/* TODO: implement all of this, or move the implementation to cube_public.h */
/* TODO: document in a separate file, possibly leave here 1-line comments */

cube_t compose(cube_t cube, cube_t perm);
cube_t inverse(cube_t cube);
cube_t solvedcube(void);
cube_t applymoves(cube_t, const char *);
cube_t applytrans(cube_t, const char *);
cube_t readcube(const char *format, const char *buf);
void writecube(const char *format, cube_t cube, char *buf);
int64_t solve(
	cube_t cube,
	const char *solver, 
	const char *options,
	const char *nisstype,
	int8_t minmoves,
	int8_t maxmoves,
	int64_t maxsols,
	int8_t optimal,
	const void *data,         
	char *solutions
);
void multisolve(
	int n,
	cube_t *cube,
	const char *solver,
	const void *data,
	char *sols
);
int64_t gendata(const char *solver, const char *options, void *data);

Generated with cgit - Back to sebastiano.tronto.net