diff --git a/src/search/search_thread.h b/src/search/search_thread.h index 402c227..90e8fb9 100644 --- a/src/search/search_thread.h +++ b/src/search/search_thread.h @@ -344,7 +344,14 @@ namespace search { if (skip_quiets && move.is_quiet() && !move.is_promo()) continue; - if (non_root_node && non_pv_node && !in_check) { + if (non_root_node && non_pv_node && !in_check && std::abs(best_score) < WORST_MATE) { + + if (move.is_quiet()) { + if (depth <= 6 && !see(board, move, -depth * 100)) { + continue; + } + } + if (depth <= 5 && made_moves >= 5 + depth * depth / (2 - improving)) { skip_quiets = true; }