diff options
Diffstat (limited to 'src/cube_public.h')
| -rw-r--r-- | src/cube_public.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 | |||
| @@ -105,6 +105,18 @@ nissy_convert( | |||
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | int64_t | 107 | int64_t |
| 108 | nissy_gencube( | ||
| 109 | uint8_t id[16], | ||
| 110 | const char *options, | ||
| 111 | char result[static 22] | ||
| 112 | ) | ||
| 113 | { | ||
| 114 | /* TODO: compute cube from id % (number of positions) */ | ||
| 115 | /* options can be used for generating e.g. DR-state cube */ | ||
| 116 | return -1; | ||
| 117 | } | ||
| 118 | |||
| 119 | int64_t | ||
| 108 | nissy_datasize( | 120 | nissy_datasize( |
| 109 | const char *solver, | 121 | const char *solver, |
| 110 | const char *options | 122 | const char *options |
| @@ -131,6 +143,8 @@ nissy_gendata( | |||
| 131 | h = atoi(options); | 143 | h = atoi(options); |
| 132 | maxdepth = atoi(&options[i+1]); | 144 | maxdepth = atoi(&options[i+1]); |
| 133 | ret = gendata_h48(data, h, maxdepth); | 145 | ret = gendata_h48(data, h, maxdepth); |
| 146 | } else if (!strcmp(solver, "H48stats")) { | ||
| 147 | ret = gendata_cocsep(data, NULL, NULL); | ||
| 134 | } else { | 148 | } else { |
| 135 | LOG("gendata: implemented only for H48 solver\n"); | 149 | LOG("gendata: implemented only for H48 solver\n"); |
| 136 | ret = -1; | 150 | ret = -1; |
| @@ -196,6 +210,8 @@ nissy_solve( | |||
| 196 | c, minmoves, maxmoves, maxsolutions, | 210 | c, minmoves, maxmoves, maxsolutions, |
| 197 | (uint8_t)h, data, solutions); | 211 | (uint8_t)h, data, solutions); |
| 198 | ret = -1; | 212 | ret = -1; |
| 213 | } else if (!strcmp(solver, "H48stats")) { | ||
| 214 | ret = solve_h48stats(c, maxmoves, data, solutions); | ||
| 199 | } else if (!strcmp(solver, "simple")) { | 215 | } else if (!strcmp(solver, "simple")) { |
| 200 | ret = solve_simple( | 216 | ret = solve_simple( |
| 201 | c, minmoves, maxmoves, maxsolutions, optimal, solutions); | 217 | c, minmoves, maxmoves, maxsolutions, optimal, solutions); |
