search: 搜索到第0层或需要退出时不再根据深度调整 value

搜索到第0层,深度肯定是0.
This commit is contained in:
Calcitem 2019-12-05 00:25:18 +08:00
parent 4ce85299db
commit 526060e812
1 changed files with 0 additions and 4 deletions

View File

@ -784,10 +784,6 @@ value_t AIAlgorithm::search(depth_t depth, value_t alpha, value_t beta, Node *no
node->value = Evaluation::getValue(tempGame, position, node); node->value = Evaluation::getValue(tempGame, position, node);
evaluatedNodeCount++; evaluatedNodeCount++;
// 为争取速胜value 值 +- 深度 (有必要?)
value_t delta = value_t(position->sideToMove == PLAYER_BLACK ? depth : -depth);
node->value += delta;
#ifdef DEBUG_AB_TREE #ifdef DEBUG_AB_TREE
if (requiredQuit) { if (requiredQuit) {
node->isTimeout = true; node->isTimeout = true;