ids: 更改 IDS 调试信息打印形式

This commit is contained in:
Calcitem 2019-10-07 16:03:28 +08:00
parent 0b6e98b15d
commit aaa78f54a9
1 changed files with 5 additions and 1 deletions

View File

@ -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) {