From 5a02743c0c9563f41a8c3821a7bbce4fc3b0b839 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Thu, 27 Aug 2026 17:41:07 +0530 Subject: bug fixes --- include/engine/search.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/engine/search.h') 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 -- cgit v1.2.3