From 3d5d66a401d4095f9336d442bb4ef7c3a3acaaa6 Mon Sep 17 00:00:00 2001 From: doruk Date: Fri, 14 Jan 2022 19:22:53 +0300 Subject: [PATCH] Deeper SEE pruning --- src/bm/bm_search/search.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bm/bm_search/search.rs b/src/bm/bm_search/search.rs index 178bafc5..e5df10da 100644 --- a/src/bm/bm_search/search.rs +++ b/src/bm/bm_search/search.rs @@ -398,9 +398,11 @@ pub fn search( In non-PV nodes If a move evaluated by SEE isn't good enough to beat alpha - a static margin we assume it's safe to prune this move */ - let do_see_prune = !Search::PV && !in_check && depth <= 2; + let do_see_prune = !Search::PV && !in_check && depth <= 7; if do_see_prune - && eval + StdEvaluator::see::<16>(&board, make_move) + SEARCH_PARAMS.get_fp() + && eval + + StdEvaluator::see::<16>(&board, make_move) + + SEARCH_PARAMS.get_fp() * (depth as i16) < alpha { continue;