diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-08-27 00:55:35 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-08-27 00:55:35 +0300 |
commit | f14e25f325b001d10d025704ff76052b043dfb55 (patch) | |
tree | 344ae8b6b8622e74d3ec4cd00270929977ba622d /src | |
parent | 791ba3906d0ec41f328c20a9a1be8eabb12a84c6 (diff) | |
download | chessnost-f14e25f325b001d10d025704ff76052b043dfb55.tar.gz |
fix: update TTable after pondering
Diffstat (limited to 'src')
-rw-r--r-- | src/grossmeister/UCI.rs | 3 |
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!"); } |