aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-29 17:32:16 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-29 18:03:00 +0300
commit2c234cee388cda5dcb05b8f862b9855bb714bc1e (patch)
treef37e61d28d755c83d4e7b963a2bc1644b2ec82d6 /src
parent870e3b69ebe4b04aec554e88b269f70def8907a5 (diff)
downloadchessnost-2c234cee388cda5dcb05b8f862b9855bb714bc1e.tar.gz
fix: remove search instability
Strictly check depth when comparing transposition table entry
Diffstat (limited to 'src')
-rw-r--r--src/board/engine.rs2
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);