From d7c4383783c341de847c9cf8845de0e7ee4ff6fd Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 17 Jul 2025 11:18:36 +0200 Subject: [PATCH] changed conthist max value | bench 3012327 --- source/search.cpp | 8 ++++---- source/search.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index a3f91ce..ca0e733 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -25,7 +25,7 @@ void InitLMRTable() { static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) { TTEntry *current = ctx->TT.GetRawEntry(board.hashKey); if (current->hashKey == board.hashKey && current->bestMove == move) { - return 100000; + return 200000; } if (move.IsCapture()) { @@ -36,12 +36,12 @@ static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) { targetType = Pawn; } - return 60000 * ((SEE(board, move, -100))) + moveScoreTable[attackerType][targetType]; + return 120000 * ((SEE(board, move, -100))) + moveScoreTable[attackerType][targetType]; } else { if (ctx->killerMoves[0][ply] == move) { - return 40000; + return 110000; } else if (ctx->killerMoves[1][ply] == move) { - return 36000; + return 100000; } else { // Max 16384 int historyScore = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()]; diff --git a/source/search.h b/source/search.h index b2f9366..eb10a3e 100644 --- a/source/search.h +++ b/source/search.h @@ -43,7 +43,7 @@ public: int clampedBonus = std::clamp(bonus, -MAX_HISTORY, MAX_HISTORY); contHistMoves[stm][prevType][prevTo][type][to] += - clampedBonus - contHistMoves[stm][prevType][prevTo][type][to] * std::abs(clampedBonus) / MAX_HISTORY; + clampedBonus - contHistMoves[stm][prevType][prevTo][type][to] * std::abs(clampedBonus) / MAX_HISTORY * 4; } void Clear() {