IDS: 只有启用迭代深化时才有必要排序子节点
This commit is contained in:
parent
89476b6de3
commit
7c1aec240f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue