From 3568412f8f230774d0d11d7ed1c897424f95d3ef Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 11 Nov 2021 21:37:34 +0100 Subject: Rewritten from scratch. Welocme nissy 2.0! --- src/alg.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/alg.h (limited to 'src/alg.h') diff --git a/src/alg.h b/src/alg.h new file mode 100644 index 0000000..98900b4 --- /dev/null +++ b/src/alg.h @@ -0,0 +1,35 @@ +#ifndef ALG_H +#define ALG_H + +#include +#include +#include + +#include "cubetypes.h" +#include "utils.h" + +bool moveset_HTM(Move m); +bool moveset_URF(Move m); +bool moveset_eofb(Move m); +bool moveset_drud(Move m); +bool moveset_htr(Move m); + +void append_alg(AlgList *l, Alg *alg); +void append_move(Alg *alg, Move m, bool inverse); +void compose_alg(Alg *alg1, Alg *alg2); +Move base_move(Move m); +void free_alg(Alg *alg); +void free_alglist(AlgList *l); +Alg * inverse_alg(Alg *alg); +Move inverse_move(Move m); +char * move_string(Move m); +void movelist_to_position(Move *ml, int *pos); +void moveset_to_list(Moveset ms, Move *lst); +Alg * new_alg(char *str); +AlgList * new_alglist(); +Alg * on_inverse(Alg *alg); +void print_alg(Alg *alg, bool l); +void print_alglist(AlgList *al, bool l); + +#endif + -- cgit v1.3