Skip to content

Commit 4803d57

Browse files
committed
Extend checks more when below alpha
Passed both short TC: LLR: 2.97 (-2.94,2.94) [-1.50,4.50] Total: 8739 W: 1830 L: 1698 D: 5211 And long TC: LLR: 2.96 (-2.94,2.94) [0.00,6.00] Total: 6716 W: 1238 L: 1101 D: 4377 bench: 4554576
1 parent 738c559 commit 4803d57

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 = inCheck || ss->staticEval < VALUE_ZERO ? ONE_PLY : ONE_PLY / 2;
840+
ext = inCheck || ss->staticEval <= alpha ? 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)