From 425eee24421bf0a19c7e0199d2e3ecba3318c8f4 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 3 Jul 2024 17:15:24 +0200 Subject: Preparing for table stats --- src/cube_public.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/cube_public.h') diff --git a/src/cube_public.h b/src/cube_public.h index a1c4b90..fe003c9 100644 --- a/src/cube_public.h +++ b/src/cube_public.h @@ -104,6 +104,18 @@ nissy_convert( return isconsistent(c) ? 0 : 2; } +int64_t +nissy_gencube( + uint8_t id[16], + const char *options, + char result[static 22] +) +{ + /* TODO: compute cube from id % (number of positions) */ + /* options can be used for generating e.g. DR-state cube */ + return -1; +} + int64_t nissy_datasize( const char *solver, @@ -131,6 +143,8 @@ nissy_gendata( h = atoi(options); maxdepth = atoi(&options[i+1]); ret = gendata_h48(data, h, maxdepth); + } else if (!strcmp(solver, "H48stats")) { + ret = gendata_cocsep(data, NULL, NULL); } else { LOG("gendata: implemented only for H48 solver\n"); ret = -1; @@ -196,6 +210,8 @@ nissy_solve( c, minmoves, maxmoves, maxsolutions, (uint8_t)h, data, solutions); ret = -1; + } else if (!strcmp(solver, "H48stats")) { + ret = solve_h48stats(c, maxmoves, data, solutions); } else if (!strcmp(solver, "simple")) { ret = solve_simple( c, minmoves, maxmoves, maxsolutions, optimal, solutions); -- cgit v1.3