From aaa78f54a9ce58db029d43a7e98e629e7c1c6283 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Mon, 7 Oct 2019 16:03:28 +0800 Subject: [PATCH] =?UTF-8?q?ids:=20=E6=9B=B4=E6=94=B9=20IDS=20=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BF=A1=E6=81=AF=E6=89=93=E5=8D=B0=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ai/search.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ai/search.cpp b/src/ai/search.cpp index 35a9f452..ca79c3d5 100644 --- a/src/ai/search.cpp +++ b/src/ai/search.cpp @@ -415,7 +415,10 @@ int AIAlgorithm::search(depth_t depth) value_t alpha = -VALUE_INFINITE; value_t beta = VALUE_INFINITE; + loggerDebug("IDS: "); + depth_t depthBegin = 2; + value_t lastValue = VALUE_ZERO; for (depth_t i = depthBegin; i < d; i += 1) { #ifdef TRANSPOSITION_TABLE_ENABLE @@ -425,7 +428,8 @@ int AIAlgorithm::search(depth_t depth) #endif value = search(i, alpha, beta, root); - loggerDebug("IDS [%d]: %d\n", i, value); + loggerDebug("%d(%d) ", value, value - lastValue); + lastValue = value; #if 0 if (value <= alpha) {