Skip to content

Commit 5ec63eb

Browse files
vdberghmcostalba
authored andcommitted
Drop to qsearch at low depth in razoring
If razoring conditions are satisfied and depth is low, then directly drop in qsearch. Passed both STC LLR: 2.98 (-2.94,2.94) [-1.50,4.50] Total: 12914 W: 2345 L: 2208 D: 8361 And LTC LLR: 2.95 (-2.94,2.94) [0.00,6.00] Total: 50600 W: 7548 L: 7230 D: 35822 bench: 8739659
1 parent a3c8c4b commit 5ec63eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/search.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ namespace {
582582
&& abs(beta) < VALUE_MATE_IN_MAX_PLY
583583
&& !pos.pawn_on_7th(pos.side_to_move()))
584584
{
585+
if ( depth <= ONE_PLY
586+
&& eval + razor_margin(3 * ONE_PLY) <= alpha)
587+
return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO);
588+
585589
Value ralpha = alpha - razor_margin(depth);
586590
Value v = qsearch<NonPV, false>(pos, ss, ralpha, ralpha+1, DEPTH_ZERO);
587591
if (v <= ralpha)

0 commit comments

Comments
 (0)