Skip to content

Commit 738c559

Browse files
uriblassmcostalba
authored andcommitted
Extend checks more in losing positions
Passed both short TC: LLR: 2.98 (-2.94,2.94) [-1.50,4.50] Total: 3974 W: 860 L: 741 D: 2373 And long TC: LLR: 2.96 (-2.94,2.94) [0.00,6.00] Total: 16807 W: 2917 L: 2733 D: 11157 bench: 3767999
1 parent bebd6e1 commit 738c559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ namespace {
837837
ext = ONE_PLY;
838838

839839
else if (givesCheck && pos.see_sign(move) >= 0)
840-
ext = ONE_PLY / 2;
840+
ext = inCheck || ss->staticEval < VALUE_ZERO ? ONE_PLY : ONE_PLY / 2;
841841

842842
// Singular extension search. If all moves but one fail low on a search of
843843
// (alpha-s, beta-s), and just one fails high on (alpha, beta), then that move

0 commit comments

Comments
 (0)