From 3568412f8f230774d0d11d7ed1c897424f95d3ef Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 11 Nov 2021 21:37:34 +0100 Subject: Rewritten from scratch. Welocme nissy 2.0! --- old/2021-06-02-cleanedup/steps.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 old/2021-06-02-cleanedup/steps.h (limited to 'old/2021-06-02-cleanedup/steps.h') 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 @@ +/* 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, +}; -- cgit v1.3