aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-27 00:55:35 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-27 00:55:35 +0300
commitf14e25f325b001d10d025704ff76052b043dfb55 (patch)
tree344ae8b6b8622e74d3ec4cd00270929977ba622d /src
parent791ba3906d0ec41f328c20a9a1be8eabb12a84c6 (diff)
downloadchessnost-f14e25f325b001d10d025704ff76052b043dfb55.tar.gz
fix: update TTable after pondering
Diffstat (limited to 'src')
-rw-r--r--src/grossmeister/UCI.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grossmeister/UCI.rs b/src/grossmeister/UCI.rs
index 1bd5f92..2351b2f 100644
--- a/src/grossmeister/UCI.rs
+++ b/src/grossmeister/UCI.rs
@@ -99,8 +99,9 @@ impl Grossmeister {
// Join to the current pondering search
if let Some(hand) = search_handle.take() {
- hand.join().unwrap();
+ let better_self = hand.join().unwrap();
halt_scheduled.store(false, Ordering::SeqCst); // Cancel scheduled halting
+ self.transposition_table = better_self.transposition_table;
} else {
panic!("Search thread not found!");
}