Skip to content

Commit 2a68f9d

Browse files
committed
Take 1: maybe after PR official-stockfish#2511 such a thign might work now
bench: 4940328
1 parent 6d0eabd commit 2a68f9d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/search.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,12 @@ namespace {
924924
pos.undo_move(move);
925925

926926
if (value >= raisedBeta)
927+
{
928+
if (depth < 7 &&
929+
thisThread->captureHistory[pos.moved_piece(move)][to_sq(move)][ type_of(pos.piece_on(to_sq(move)))] < 0)
930+
thisThread->captureHistory[pos.moved_piece(move)][to_sq(move)][ type_of(pos.piece_on(to_sq(move)))] << stat_bonus(depth - 4);
927931
return value;
932+
}
928933
}
929934
}
930935

0 commit comments

Comments
 (0)