aboutsummaryrefslogtreecommitdiff
path: root/old/2021-06-02-cleanedup/steps.h
blob: 452b71c1b5b94ce610847cb1443806f7a8974d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Pre-conditions, i.e. "ready(cube)" functions ******************************/

bool always_ready(Cube cube) { return true; }

/* Main functions, i.e. "f(cube)" ********************************************/

int f_eofb(Cube cube) { return (cube.eofb != 0) ? 1 : 0; }

/* Steps *********************************************************************/

Step step_eofb = { .f = f_eofb, .ready = always_ready };

/* Movesets ******************************************************************/

bool standard_moveset[NMOVES] = {
	[U] = true, [U2] = true, [U3] = true,
	[D] = true, [D2] = true, [D3] = true,
	[R] = true, [R2] = true, [R3] = true,
	[L] = true, [L2] = true, [L3] = true,
	[F] = true, [F2] = true, [F3] = true,
	[B] = true, [B2] = true, [B3] = true,
};

Generated with cgit - Back to sebastiano.tronto.net