summaryrefslogtreecommitdiff
path: root/include/engine/search.h
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-27 17:41:07 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-27 17:41:07 +0530
commit5a02743c0c9563f41a8c3821a7bbce4fc3b0b839 (patch)
treef36aa805b8c90a8d786e8561a9d84f57e6191c19 /include/engine/search.h
parentd87b4744bed8f0c43e11ea12508ef2941bdd7186 (diff)
bug fixes
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