From 031b5285ed88a00728a33d7f103039381cbc1b06 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 16 Dec 2025 06:23:25 +0100 Subject: [PATCH 1/2] 2ply conthist | bench 3966908 --- source/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index df6e9c8..81489f8 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -77,11 +77,10 @@ static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) { if (ply > 0) { conthistScore = ctx->conthist.GetNPly(board, move, ctx, ply, 1); - /* + if (ply > 1) { - conthistScore += ctx->conthist.GetTwoPly(board, move, ctx, ply); + conthistScore = ctx->conthist.GetNPly(board, move, ctx, ply, 2); } - */ } return 20000 + historyScore + conthistScore; -- 2.47.3 From d71e264bb93a83db35b27280c042aff23b435171 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 16 Dec 2025 07:09:30 +0100 Subject: [PATCH 2/2] adding instead of setting | bench 4083464 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 81489f8..7d35158 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -79,7 +79,7 @@ static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) { conthistScore = ctx->conthist.GetNPly(board, move, ctx, ply, 1); if (ply > 1) { - conthistScore = ctx->conthist.GetNPly(board, move, ctx, ply, 2); + conthistScore += ctx->conthist.GetNPly(board, move, ctx, ply, 2); } } -- 2.47.3