From 382cbe47672328d6bbb479f9fffc0f0413e92ada Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 21 Jan 2024 17:39:07 +0100 Subject: feat: add warning about lower-depth in PV --- src/grossmeister/search.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/grossmeister') 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); } -- cgit v1.2.3