diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-11 21:37:34 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-11 21:37:34 +0100 |
| commit | 3568412f8f230774d0d11d7ed1c897424f95d3ef (patch) | |
| tree | 77223792d8c925a9b1fc32b3f4341e943b5f8209 /old/2021-06-02-cleanedup/steps.h | |
| parent | 67e1b5e6e6a2c917a2fe58a37a1382c982b1e5c5 (diff) | |
| download | nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.tar.gz nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.zip | |
Rewritten from scratch. Welocme nissy 2.0!
Diffstat (limited to 'old/2021-06-02-cleanedup/steps.h')
| -rw-r--r-- | old/2021-06-02-cleanedup/steps.h | 22 |
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 | |||
| 3 | bool always_ready(Cube cube) { return true; } | ||
| 4 | |||
| 5 | /* Main functions, i.e. "f(cube)" ********************************************/ | ||
| 6 | |||
| 7 | int f_eofb(Cube cube) { return (cube.eofb != 0) ? 1 : 0; } | ||
| 8 | |||
| 9 | /* Steps *********************************************************************/ | ||
| 10 | |||
| 11 | Step step_eofb = { .f = f_eofb, .ready = always_ready }; | ||
| 12 | |||
| 13 | /* Movesets ******************************************************************/ | ||
| 14 | |||
| 15 | bool 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 | }; | ||
