From 1e073bb30dcf7e98ced3438d2543f17df8001f79 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 26 Aug 2025 23:15:10 +0200 Subject: [PATCH] added 2ply conthist to fp | bench 8879438 --- source/search.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index af2450e..59d1148 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -461,8 +461,12 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC // that a quiet move will help us so we skip them int historyScore = ctx->history[board.sideToMove][currMove.MoveFrom()][currMove.MoveTo()]; - if (ply > 0) + if (ply > 0) { historyScore += ctx->conthist.GetOnePly(board, currMove, ctx, ply); + + if (ply > 1) + historyScore += ctx->conthist.GetTwoPly(board, currMove, ctx, ply); + } int fpMargin = 100 * depth + historyScore / 32; -- 2.47.3