Skip to content

Commit 0e1f734

Browse files
unaiicvondele
authored andcommitted
Less pruning in qsearch
do not prune moves that give discovery checks, even if with negative SSE. STC https://tests.stockfishchess.org/tests/view/5f4cb5e8ba100690c5cc5d25 LLR: 2.96 (-2.94,2.94) {-0.25,1.25} Total: 91328 W: 9940 L: 9667 D: 71721 Ptnml(0-2): 491, 7345, 29693, 7670, 465 LTC https://tests.stockfishchess.org/tests/view/5f4dbc2eba100690c5cc5dac LLR: 2.97 (-2.94,2.94) {0.25,1.25} Total: 52448 W: 2799 L: 2586 D: 47063 Ptnml(0-2): 53, 2220, 21459, 2445, 47 closes #3098 bench: 4031192
1 parent 571c2d6 commit 0e1f734

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/search.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,9 @@ namespace {
15641564
}
15651565

15661566
// Do not search moves with negative SEE values
1567-
if (!ss->inCheck && !pos.see_ge(move))
1567+
if ( !ss->inCheck
1568+
&& !(givesCheck && pos.is_discovery_check_on_king(~pos.side_to_move(), move))
1569+
&& !pos.see_ge(move))
15681570
continue;
15691571

15701572
// Speculative prefetch as early as possible

0 commit comments

Comments
 (0)