From 77e8004405de226d87b136fc33deee530ca9862c Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 20 May 2025 08:38:00 +0200 Subject: [PATCH] diff history bonus formula | bench 4333527 --- source/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index b7f7fbf..d78b0c5 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -373,10 +373,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC ctx.killerMoves[1][ply] = ctx.killerMoves[0][ply]; ctx.killerMoves[0][ply] = currMove; - int bonus = depth * depth; + int bonus = 300 * depth - 250; ctx.history.Update(board.sideToMove, currMove, bonus); + // Malus for (int moveIndex = 0; moveIndex < seenQuietsCount - 1; moveIndex++) { ctx.history.Update(board.sideToMove, seenQuiets[moveIndex], -bonus); } -- 2.47.3