From 0d580f697ca3ac19f7406269a1762d5506a9ad52 Mon Sep 17 00:00:00 2001 From: dhb <1084714805@qq.com> Date: Mon, 14 Oct 2024 03:41:38 +0800 Subject: [PATCH] no vcf evaluation use alpha to replace static eval test f15 --- Rapfi/search/ab/search.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Rapfi/search/ab/search.cpp b/Rapfi/search/ab/search.cpp index ab6f8fc..5ddbc20 100644 --- a/Rapfi/search/ab/search.cpp +++ b/Rapfi/search/ab/search.cpp @@ -1560,7 +1560,7 @@ Value vcfsearch(Board &board, SearchStack *ss, Value alpha, Value beta, Depth de if (ttEval != VALUE_NONE) ss->staticEval = ttEval; else if (depth < 0) - ss->staticEval = Evaluation::evaluate(board, alpha, beta); + ss->staticEval = alpha; bestValue = ss->staticEval; // Try to use ttValue as a better eval estimation @@ -1569,12 +1569,8 @@ Value vcfsearch(Board &board, SearchStack *ss, Value alpha, Value beta, Depth de bestValue = ttValue; } else { - if (depth < 0) { - // In case of null move search use previous static eval with a different sign - ss->staticEval = (ss - 1)->currentMove == Pos::PASS - ? -(ss - 1)->staticEval - : Evaluation::evaluate(board, alpha, beta); - } + if (depth < 0) + ss->staticEval = alpha; bestValue = ss->staticEval; }