summaryrefslogtreecommitdiff
path: root/include/engine/search.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/engine/search.h')
-rw-r--r--include/engine/search.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/engine/search.h b/include/engine/search.h
index 94b5da5..506a4bc 100644
--- a/include/engine/search.h
+++ b/include/engine/search.h
@@ -33,4 +33,13 @@ search_result_t search(
search_ctx_t *ctx
);
+// Reconstruct the principal variation by following TT best-move entries.
+// Writes at most `max_len` moves into `pv_out`; returns the number written.
+int reconstruct_pv(
+ position_t position,
+ ttable_t tt,
+ move_t *pv_out,
+ int max_len
+);
+
#endif // SEARCH_H