aboutsummaryrefslogtreecommitdiff
path: root/old/2021-11-10-beforeremovingchecker/alg.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-11 21:37:34 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-11 21:37:34 +0100
commit3568412f8f230774d0d11d7ed1c897424f95d3ef (patch)
tree77223792d8c925a9b1fc32b3f4341e943b5f8209 /old/2021-11-10-beforeremovingchecker/alg.h
parent67e1b5e6e6a2c917a2fe58a37a1382c982b1e5c5 (diff)
downloadnissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.tar.gz
nissy-3568412f8f230774d0d11d7ed1c897424f95d3ef.zip
Rewritten from scratch. Welocme nissy 2.0!
Diffstat (limited to '')
-rw-r--r--old/2021-11-10-beforeremovingchecker/alg.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/old/2021-11-10-beforeremovingchecker/alg.h b/old/2021-11-10-beforeremovingchecker/alg.h
new file mode 100644
index 0000000..98900b4
--- /dev/null
+++ b/old/2021-11-10-beforeremovingchecker/alg.h
@@ -0,0 +1,35 @@
1#ifndef ALG_H
2#define ALG_H
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7
8#include "cubetypes.h"
9#include "utils.h"
10
11bool moveset_HTM(Move m);
12bool moveset_URF(Move m);
13bool moveset_eofb(Move m);
14bool moveset_drud(Move m);
15bool moveset_htr(Move m);
16
17void append_alg(AlgList *l, Alg *alg);
18void append_move(Alg *alg, Move m, bool inverse);
19void compose_alg(Alg *alg1, Alg *alg2);
20Move base_move(Move m);
21void free_alg(Alg *alg);
22void free_alglist(AlgList *l);
23Alg * inverse_alg(Alg *alg);
24Move inverse_move(Move m);
25char * move_string(Move m);
26void movelist_to_position(Move *ml, int *pos);
27void moveset_to_list(Moveset ms, Move *lst);
28Alg * new_alg(char *str);
29AlgList * new_alglist();
30Alg * on_inverse(Alg *alg);
31void print_alg(Alg *alg, bool l);
32void print_alglist(AlgList *al, bool l);
33
34#endif
35

Generated with cgit - Back to sebastiano.tronto.net