Skip to content

Commit 38428ad

Browse files
ajithcjmcostalba
authored andcommitted
Prune dangerous moves at low depth
At very low depths prune captures, promotions and checks if see is negative. STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 6772 W: 1328 L: 1173 D: 4271 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 8917 W: 1270 L: 1122 D: 6525 bench: 6024713
1 parent e340ce2 commit 38428ad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/search.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,16 @@ namespace {
956956
continue;
957957
}
958958
}
959+
else if ( depth < 3 * ONE_PLY
960+
&& !inCheck
961+
&& bestValue > VALUE_MATED_IN_MAX_PLY
962+
&& !rootNode
963+
&& ( captureOrPromotion
964+
|| givesCheck
965+
|| pos.advanced_pawn_push(move))
966+
&& pos.see_sign(move) < VALUE_ZERO
967+
)
968+
continue;
959969

960970
// Speculative prefetch as early as possible
961971
prefetch(TT.first_entry(pos.key_after(move)));

0 commit comments

Comments
 (0)