aboutsummaryrefslogtreecommitdiff
path: root/src/cubetypes.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cubetypes.h36
1 files changed, 27 insertions, 9 deletions
diff --git a/src/cubetypes.h b/src/cubetypes.h
index f11f480..3f350af 100644
--- a/src/cubetypes.h
+++ b/src/cubetypes.h
@@ -81,8 +81,9 @@ typedef struct commandargs CommandArgs;
81typedef struct coordinate Coordinate; 81typedef struct coordinate Coordinate;
82typedef struct cube Cube; 82typedef struct cube Cube;
83typedef struct cubearray CubeArray; 83typedef struct cubearray CubeArray;
84typedef struct cubetarget CubeTarget;
85typedef struct dfsdata DfsData; 84typedef struct dfsdata DfsData;
85typedef struct estimatedata EstimateData;
86typedef struct localinfo LocalInfo;
86typedef struct piecefilter PieceFilter; 87typedef struct piecefilter PieceFilter;
87typedef struct prunedata PruneData; 88typedef struct prunedata PruneData;
88typedef struct solveoptions SolveOptions; 89typedef struct solveoptions SolveOptions;
@@ -92,7 +93,7 @@ typedef struct threaddata ThreadData;
92 93
93typedef Cube (*AntiIndexer) (uint64_t); 94typedef Cube (*AntiIndexer) (uint64_t);
94typedef bool (*Checker) (Cube); 95typedef bool (*Checker) (Cube);
95typedef int (*Estimator) (CubeTarget); 96typedef int (*Estimator) (EstimateData *);
96typedef bool (*Validator) (Alg *); 97typedef bool (*Validator) (Alg *);
97typedef void (*Exec) (CommandArgs *); 98typedef void (*Exec) (CommandArgs *);
98typedef uint64_t (*Indexer) (Cube); 99typedef uint64_t (*Indexer) (Cube);
@@ -196,13 +197,6 @@ cubearray
196}; 197};
197 198
198struct 199struct
199cubetarget
200{
201 Cube cube;
202 int target;
203};
204
205struct
206dfsdata 200dfsdata
207{ 201{
208 int d; 202 int d;
@@ -211,6 +205,7 @@ dfsdata
211 bool niss; 205 bool niss;
212 Move last1; 206 Move last1;
213 Move last2; 207 Move last2;
208 EstimateData * ed;
214 AlgList * sols; 209 AlgList * sols;
215 pthread_mutex_t * sols_mutex; 210 pthread_mutex_t * sols_mutex;
216 Alg * current_alg; 211 Alg * current_alg;
@@ -220,6 +215,29 @@ dfsdata
220}; 215};
221 216
222struct 217struct
218estimatedata
219{
220 Cube cube;
221 int target;
222 Move lastmove;
223 uint64_t movebitmask;
224 LocalInfo * li;
225};
226
227struct
228localinfo
229{
230 int corners;
231 int normal_ud;
232 int normal_fb;
233 int normal_rl;
234 int inverse_ud;
235 int inverse_fb;
236 int inverse_rl;
237 int prev_ret;
238};
239
240struct
223piecefilter 241piecefilter
224{ 242{
225 bool epose; 243 bool epose;

Generated with cgit - Back to sebastiano.tronto.net