From b82df53eb461506984eb2b6a9b53e445b75e46af Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 26 Dec 2021 00:36:39 +0100 Subject: Better trans-detection system (for e.g. drfin for HTR scramble) --- src/cubetypes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cubetypes.h') diff --git a/src/cubetypes.h b/src/cubetypes.h index 1b679aa..b002e8b 100644 --- a/src/cubetypes.h +++ b/src/cubetypes.h @@ -100,7 +100,7 @@ typedef bool (*Validator) (Alg *); typedef void (*Exec) (CommandArgs *); typedef uint64_t (*Indexer) (Cube); typedef CommandArgs * (*ArgParser) (int, char **); -typedef Trans (*TransDetector) (Cube); +typedef int (*TransDetector) (Cube, Trans *); typedef int (*TransFinder) (uint64_t, Trans *); @@ -202,6 +202,7 @@ dfsarg { Step * step; SolveOptions * opts; + Trans t; Cube cube; Cube inverse; int d; @@ -323,6 +324,7 @@ struct threaddatasolve { int thid; + Trans t; Cube cube; Step * step; int depth; -- cgit v1.3