Skip to content

Commit

Permalink
Extend see assisted futility pruning to higher depths
Browse files Browse the repository at this point in the history
Deeper SEE pruning
  • Loading branch information
jnlt3 committed Jan 14, 2022
2 parents 28333be + 3d5d66a commit 8bd8c5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bm/bm_search/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,11 @@ pub fn search<Search: SearchType>(
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;
Expand Down

0 comments on commit 8bd8c5b

Please sign in to comment.