diff options
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 | |||
