diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-29 17:32:16 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-29 18:03:00 +0300 |
commit | 2c234cee388cda5dcb05b8f862b9855bb714bc1e (patch) | |
tree | f37e61d28d755c83d4e7b963a2bc1644b2ec82d6 | |
parent | 870e3b69ebe4b04aec554e88b269f70def8907a5 (diff) | |
download | chessnost-2c234cee388cda5dcb05b8f862b9855bb714bc1e.tar.gz |
fix: remove search instability
Strictly check depth when comparing transposition table entry
-rw-r--r-- | src/board/engine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |