diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-27 12:11:07 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-27 12:11:07 +0100 |
| commit | de0352a2926b0708400a9629c1da813455a6f442 (patch) | |
| tree | b0bab5511cea4d9c2910e144d1ebf53c984f786b /src/alg.h | |
| parent | 75bd848e9e0cd9a14ca82018edac0b414fa4db44 (diff) | |
| download | nissy-de0352a2926b0708400a9629c1da813455a6f442.tar.gz nissy-de0352a2926b0708400a9629c1da813455a6f442.zip | |
Changed unniss() to return an Alg*. Addedd inplace() to run a function on an alg in place.
Diffstat (limited to 'src/alg.h')
| -rw-r--r-- | src/alg.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -22,6 +22,7 @@ bool commute(Move m1, Move m2); | |||
| 22 | void copy_alg(Alg *src, Alg *dst); | 22 | void copy_alg(Alg *src, Alg *dst); |
| 23 | void free_alg(Alg *alg); | 23 | void free_alg(Alg *alg); |
| 24 | void free_alglist(AlgList *l); | 24 | void free_alglist(AlgList *l); |
| 25 | void inplace(Alg * (*f)(Alg *), Alg *alg); | ||
| 25 | Alg * inverse_alg(Alg *alg); | 26 | Alg * inverse_alg(Alg *alg); |
| 26 | Move inverse_move(Move m); | 27 | Move inverse_move(Move m); |
| 27 | char * move_string(Move m); | 28 | char * move_string(Move m); |
| @@ -33,7 +34,7 @@ Alg * on_inverse(Alg *alg); | |||
| 33 | void print_alg(Alg *alg, bool l); | 34 | void print_alg(Alg *alg, bool l); |
| 34 | void print_alglist(AlgList *al, bool l); | 35 | void print_alglist(AlgList *al, bool l); |
| 35 | void swapmove(Move *m1, Move *m2); | 36 | void swapmove(Move *m1, Move *m2); |
| 36 | void unniss(Alg *alg); | 37 | Alg * unniss(Alg *alg); |
| 37 | 38 | ||
| 38 | void init_moveset(Moveset *ms); | 39 | void init_moveset(Moveset *ms); |
| 39 | void init_all_movesets(); | 40 | void init_all_movesets(); |
