diff options
Diffstat (limited to 'old/2021-06-30-noreached/cube.h')
| -rw-r--r-- | old/2021-06-30-noreached/cube.h | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/old/2021-06-30-noreached/cube.h b/old/2021-06-30-noreached/cube.h deleted file mode 100644 index ffbcd86..0000000 --- a/old/2021-06-30-noreached/cube.h +++ /dev/null | |||
| @@ -1,90 +0,0 @@ | |||
| 1 | #ifndef CUBE_H | ||
| 2 | #define CUBE_H | ||
| 3 | |||
| 4 | #include <stdio.h> | ||
| 5 | #include <stdbool.h> | ||
| 6 | #include <stdint.h> | ||
| 7 | #include <stdlib.h> | ||
| 8 | #include <string.h> | ||
| 9 | #include <time.h> | ||
| 10 | #include <unistd.h> | ||
| 11 | #include <sys/stat.h> | ||
| 12 | |||
| 13 | #include "macros.h" | ||
| 14 | #include "cubetypes.h" | ||
| 15 | |||
| 16 | extern Coordinate coord_eofb; | ||
| 17 | extern Coordinate coord_eofbepos; | ||
| 18 | extern Coordinate coord_coud; | ||
| 19 | extern Coordinate coord_corners; | ||
| 20 | extern Coordinate coord_cornershtr; | ||
| 21 | extern Coordinate coord_drud; | ||
| 22 | extern Coordinate coord_coud_sym16; | ||
| 23 | extern Coordinate coord_eofbepos_sym16; | ||
| 24 | extern Coordinate coord_drud_sym16; | ||
| 25 | extern Coordinate coord_khuge; | ||
| 26 | |||
| 27 | Cube apply_alg(Alg *alg, Cube cube); | ||
| 28 | Cube apply_move(Move m, Cube cube); | ||
| 29 | Cube apply_trans(Trans t, Cube cube); | ||
| 30 | bool block_solved(Cube cube, Block); | ||
| 31 | Cube compose(Cube c2, Cube c1); /* Use c2 as an alg on c1 */ | ||
| 32 | uint64_t cphtr(Cube cube); /* TODO: rename (something with cosets) */ | ||
| 33 | Cube anti_cphtr(uint64_t ind); /*TODO also this */ | ||
| 34 | uint64_t epos_dependent(Cube cube); /* TODO: rename and turn into an indexer */ | ||
| 35 | bool equal(Cube c1, Cube c2); | ||
| 36 | Cube inverse_cube(Cube cube); | ||
| 37 | Move inverse_move(Move m); | ||
| 38 | Trans inverse_trans(Trans t); | ||
| 39 | bool is_admissible(Cube cube); | ||
| 40 | bool is_solved(Cube cube, bool reorient); | ||
| 41 | bool is_solved_center(Cube cube, Center c); | ||
| 42 | bool is_solved_corner(Cube cube, Corner c); | ||
| 43 | bool is_solved_edge(Cube cube, Edge e); | ||
| 44 | void print_cube(Cube cube); | ||
| 45 | Cube random_cube(); | ||
| 46 | AlgList * solve(Cube cube, Step step, SolveOptions *opts); | ||
| 47 | Center what_center_at(Cube cube, Center c); | ||
| 48 | Corner what_corner_at(Cube cube, Corner c); | ||
| 49 | Edge what_edge_at(Cube cube, Edge e); | ||
| 50 | int what_orientation_corner(int co, Corner c); | ||
| 51 | int what_orientation_edge(int eo, Edge e); | ||
| 52 | Center where_is_center(Cube cube, Center c); | ||
| 53 | Corner where_is_corner(Cube cube, Corner c); | ||
| 54 | Edge where_is_edge(Cube cube, Edge e); | ||
| 55 | |||
| 56 | bool check_centers(Cube cube); | ||
| 57 | bool check_corners(Cube cube); | ||
| 58 | bool check_cornershtr(Cube cube); | ||
| 59 | bool check_coud(Cube cube); | ||
| 60 | bool check_drud(Cube cube); | ||
| 61 | bool check_eofb(Cube cube); | ||
| 62 | bool check_eofbepos(Cube cube); | ||
| 63 | bool check_epose(Cube cube); | ||
| 64 | bool check_ep(Cube cube); | ||
| 65 | bool check_khuge(Cube cube); | ||
| 66 | bool check_nothing(Cube cube); | ||
| 67 | |||
| 68 | bool moveset_HTM(Move m); | ||
| 69 | bool moveset_URF(Move m); | ||
| 70 | |||
| 71 | Move base_move(Move m); | ||
| 72 | void free_alg(Alg *alg); | ||
| 73 | void free_alglist(AlgList *l); | ||
| 74 | Alg * inverse_alg(Alg *alg); | ||
| 75 | Alg * new_alg(char *str); | ||
| 76 | Alg * on_inverse(Alg *alg); | ||
| 77 | void print_alg(Alg *alg, bool l); | ||
| 78 | void print_alglist(AlgList *al, bool l); | ||
| 79 | Alg * rotation_alg(Trans i); | ||
| 80 | void transform_alg(Trans t, Alg *alg); | ||
| 81 | |||
| 82 | void genptable(PruneData *pd); | ||
| 83 | void print_ptable(PruneData *pd); | ||
| 84 | uint64_t ptablesize(PruneData *pd); | ||
| 85 | int ptableval(PruneData *pd, Cube cube); | ||
| 86 | |||
| 87 | void init(); | ||
| 88 | |||
| 89 | #endif | ||
| 90 | |||
