aboutsummaryrefslogtreecommitdiff
path: root/old/2021-06-02-cleanedup/steps.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--old/2021-06-02-cleanedup/steps.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/old/2021-06-02-cleanedup/steps.h b/old/2021-06-02-cleanedup/steps.h
new file mode 100644
index 0000000..452b71c
--- /dev/null
+++ b/old/2021-06-02-cleanedup/steps.h
@@ -0,0 +1,22 @@
1/* Pre-conditions, i.e. "ready(cube)" functions ******************************/
2
3bool always_ready(Cube cube) { return true; }
4
5/* Main functions, i.e. "f(cube)" ********************************************/
6
7int f_eofb(Cube cube) { return (cube.eofb != 0) ? 1 : 0; }
8
9/* Steps *********************************************************************/
10
11Step step_eofb = { .f = f_eofb, .ready = always_ready };
12
13/* Movesets ******************************************************************/
14
15bool standard_moveset[NMOVES] = {
16 [U] = true, [U2] = true, [U3] = true,
17 [D] = true, [D2] = true, [D3] = true,
18 [R] = true, [R2] = true, [R3] = true,
19 [L] = true, [L2] = true, [L3] = true,
20 [F] = true, [F2] = true, [F3] = true,
21 [B] = true, [B2] = true, [B3] = true,
22};

Generated with cgit - Back to sebastiano.tronto.net