nissy-fmc

A Rubik's cube FMC assistant
git clone https://git.tronto.net/nissy-fmc
Download | Log | Files | Refs | README | LICENSE

solve.h (503B)


      1 #define MAX_N_COORD 3
      2 
      3 typedef enum { NORMAL, INVERSE, NISS } SolutionType;
      4 typedef struct { coord_value_t val; Trans t; } CubeState;
      5 typedef struct {
      6 	char *shortname;
      7 	Moveset *moveset;
      8 	Coordinate *coord[MAX_N_COORD];
      9 } Step;
     10 typedef struct {
     11 	Cube *cube;
     12 	CubeState state[MAX_N_COORD];
     13 	Step *s;
     14 	Trans t;
     15 	SolutionType st;
     16 	char **sol;
     17 	int d;
     18 	bool niss;
     19 	bool has_nissed;
     20 	Move last[2];
     21 	Move lastinv[2];
     22 	Alg *current_alg;
     23 } DfsArg;
     24 
     25 int solve(Step *, Trans, int, SolutionType, Cube *, char *);