From f415a9148cd2af2cf96236ab52aa14cd62fc9db3 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 23 Nov 2024 21:37:19 -0500 Subject: [PATCH] fix: wrong logic on skepticism --- src/search.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.rs b/src/search.rs index be69f35..7aabdd7 100644 --- a/src/search.rs +++ b/src/search.rs @@ -278,12 +278,12 @@ fn iter_deep( match rx.try_recv() { Ok(msg) => match msg { InterfaceMsg::Stop => { - if depth & 1 == 0 && (EvalInt::from(eval) - EvalInt::from(prev_eval) > 300) { + if depth & 1 == 1 && (EvalInt::from(eval) - EvalInt::from(prev_eval) > 300) { // be skeptical if we move last and we suddenly earn a lot of // centipawns. this may be a sign of horizon problem - return (line, eval) - } else { return (prev_line, prev_eval) + } else { + return (line, eval) } }, },