Merge pull request #150 from rektdie/history-bonus-fail-low
bench 1617873
This commit was merged in pull request #150.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -652,7 +652,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
||||
|
||||
// Fail high (beta cutoff)
|
||||
if (score >= beta) {
|
||||
int bonus = historyBonusMultiplier * depth - historyBonusSub;
|
||||
int bonus = historyBonusMultiplier * (depth + (!board.InCheck() && staticEval <= alpha)) - historyBonusSub;
|
||||
|
||||
if (!currMove.IsCapture()) {
|
||||
ctx->killerMoves[1][ply] = ctx->killerMoves[0][ply];
|
||||
|
||||
Reference in new issue
Block a user