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/2020-unknown-date/cubeutils.h | |
| parent | 67e1b5e6e6a2c917a2fe58a37a1382c982b1e5c5 (diff) | |
| download | nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.tar.gz nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.zip | |
Rewritten from scratch. Welocme nissy 2.0!
Diffstat (limited to '')
| -rw-r--r-- | old/2020-unknown-date/cubeutils.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/old/2020-unknown-date/cubeutils.h b/old/2020-unknown-date/cubeutils.h new file mode 100644 index 0000000..b24291c --- /dev/null +++ b/old/2020-unknown-date/cubeutils.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* Cube-specific utility functions */ | ||
| 2 | |||
| 3 | #ifndef CUBEUTILS_H | ||
| 4 | #define CUBEUTILS_H | ||
| 5 | |||
| 6 | #include <stdbool.h> | ||
| 7 | #include "pieces.h" | ||
| 8 | |||
| 9 | void cube_to_ep_array(Cube *cube, int ep[12]); | ||
| 10 | void ep_array_to_epos(int ep[12], Cube *cube); | ||
| 11 | |||
| 12 | Cube *solved_cube(); | ||
| 13 | bool solvable(Cube *cube); | ||
| 14 | bool solved(Cube *cube); | ||
| 15 | |||
| 16 | void print(Cube *cube); | ||
| 17 | |||
| 18 | #endif | ||
