aboutsummaryrefslogtreecommitdiff
path: root/src/nissy.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-07 15:09:46 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-07 15:28:01 +0200
commit5355de2921126e2b75e24abd57e17556e22a6ed0 (patch)
tree0df679e152ffb2798248982ac58ff123c6859114 /src/nissy.c
parent57a7520545134ab95f7bb0397dcbe991c906a3e9 (diff)
downloadnissy-core-5355de2921126e2b75e24abd57e17556e22a6ed0.tar.gz
nissy-core-5355de2921126e2b75e24abd57e17556e22a6ed0.zip
Added API function for solution variations
Diffstat (limited to 'src/nissy.c')
-rw-r--r--src/nissy.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nissy.c b/src/nissy.c
index 4b5d476..17ef960 100644
--- a/src/nissy.c
+++ b/src/nissy.c
@@ -149,6 +149,32 @@ nissy_applytrans_error:
149} 149}
150 150
151long long 151long long
152nissy_variations(
153 const char *moves,
154 const char *variation,
155 unsigned long long result_size,
156 char *result
157)
158{
159 if (moves == NULL) {
160 LOG("[variations] Error: 'moves' argument is NULL\n");
161 return NISSY_ERROR_NULL_POINTER;
162 }
163
164 if (variation == NULL) {
165 LOG("[variations] Error: 'variation' argument is NULL\n");
166 return NISSY_ERROR_NULL_POINTER;
167 }
168
169 if (result == NULL) {
170 LOG("[variations] Error: 'result' argument is NULL\n");
171 return NISSY_ERROR_NULL_POINTER;
172 }
173
174 return move_variations(moves, variation, result_size, result);
175}
176
177long long
152nissy_getcube( 178nissy_getcube(
153 long long ep, 179 long long ep,
154 long long eo, 180 long long eo,

Generated with cgit - Back to sebastiano.tronto.net