aboutsummaryrefslogtreecommitdiff
path: root/src/grossmeister/search.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2024-01-21 17:39:07 +0100
committereug-vs <eugene@eug-vs.xyz>2024-01-21 17:39:07 +0100
commit382cbe47672328d6bbb479f9fffc0f0413e92ada (patch)
tree457c33e20c8d2afc039cda529d7f61ab087b224e /src/grossmeister/search.rs
parent9926ba6c4f97669c9683996a7c9d37499f118135 (diff)
downloadchessnost-382cbe47672328d6bbb479f9fffc0f0413e92ada.tar.gz
feat: add warning about lower-depth in PV
Diffstat (limited to 'src/grossmeister/search.rs')
-rw-r--r--src/grossmeister/search.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/grossmeister/search.rs b/src/grossmeister/search.rs
index a4b6707..c81c586 100644
--- a/src/grossmeister/search.rs
+++ b/src/grossmeister/search.rs
@@ -269,7 +269,9 @@ impl Grossmeister {
if depth > 0 {
if let Some(transposition) = self.transposition().cloned() {
if let Some(mov) = transposition.mov {
- debug_assert!(transposition.depth >= depth, "TTable node should be at least as deep as we expect");
+ if transposition.depth < depth {
+ println!("info string found lower-depth {:?}-node ({}) than expected ({}). Probably bad", transposition.node_type, transposition.depth, depth);
+ }
if transposition.depth > depth {
println!("info string found higher-depth {:?}-node ({}) than expected ({}). Good for us?", transposition.node_type, transposition.depth, depth);
}