IDS: 只有启用迭代深化时才有必要排序子节点

This commit is contained in:
CalciteM Team 2019-07-19 23:15:41 +08:00
parent 89476b6de3
commit 7c1aec240f
1 changed files with 2 additions and 0 deletions

View File

@ -893,8 +893,10 @@ int NineChessAi_ab::alphaBetaPruning(int depth, int alpha, int beta, Node *node)
#endif #endif
#endif /* HASH_MAP_ENABLE */ #endif /* HASH_MAP_ENABLE */
#ifdef IDS_SUPPORT
// 排序子节点树 // 排序子节点树
sortLegalMoves(node); // (13%) sortLegalMoves(node); // (13%)
#endif // IDS_SUPPORT
// 返回 // 返回
return node->value; return node->value;