From 2c234cee388cda5dcb05b8f862b9855bb714bc1e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 29 Jan 2023 17:32:16 +0300 Subject: fix: remove search instability Strictly check depth when comparing transposition table entry --- src/board/engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/board') diff --git a/src/board/engine.rs b/src/board/engine.rs index 95d7145..a87e8b0 100644 --- a/src/board/engine.rs +++ b/src/board/engine.rs @@ -283,7 +283,7 @@ impl Board { match self.transposition() { Some(transposition) => { - if transposition.depth >= depth_left { + if transposition.depth == depth_left { match transposition.node_type { NodeType::PV => { // PV-nodes have exact score principal_variation.push(transposition.mov); -- cgit v1.2.3