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-07-15-almostbeforerefactor/alg.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/2021-07-15-almostbeforerefactor/alg.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/old/2021-07-15-almostbeforerefactor/alg.h b/old/2021-07-15-almostbeforerefactor/alg.h new file mode 100644 index 0000000..865c2b3 --- /dev/null +++ b/old/2021-07-15-almostbeforerefactor/alg.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #ifndef ALG_H | ||
| 2 | #define ALG_H | ||
| 3 | |||
| 4 | #include <stdio.h> | ||
| 5 | #include <stdbool.h> | ||
| 6 | #include <stdlib.h> | ||
| 7 | #include <string.h> | ||
| 8 | |||
| 9 | #include "macros.h" | ||
| 10 | #include "cubetypes.h" | ||
| 11 | |||
| 12 | Move base_move(Move m); | ||
| 13 | void free_alg(Alg *alg); | ||
| 14 | void free_alglist(AlgList *l); | ||
| 15 | Alg * inverse_alg(Alg *alg); | ||
| 16 | Move inverse_move(Move m); | ||
| 17 | bool moveset_HTM(Move m); | ||
| 18 | bool moveset_URF(Move m); | ||
| 19 | Alg * new_alg(char *str); | ||
| 20 | Alg * on_inverse(Alg *alg); | ||
| 21 | void print_alg(Alg *alg, bool l); | ||
| 22 | void print_alglist(AlgList *al, bool l); | ||
| 23 | Alg * rotation_alg(Trans i); | ||
| 24 | void transform_alg(Trans t, Alg *alg); | ||
| 25 | |||
| 26 | #endif | ||
| 27 | |||
