search: 最后记录不一定确切的哈希值时省略对 node->children[0] 是否非 null 的判断
This commit is contained in:
parent
39274bb704
commit
4c258d5391
|
@ -922,10 +922,7 @@ value_t AIAlgorithm::search(depth_t depth, value_t alpha, value_t beta, Node *no
|
|||
|
||||
#ifdef TRANSPOSITION_TABLE_ENABLE
|
||||
// 记录不一定确切的哈希值
|
||||
if (node->children[0])
|
||||
{
|
||||
TT::recordHash(node->value, depth, hashf, hash, node->children[0]->move);
|
||||
}
|
||||
TT::recordHash(node->value, depth, hashf, hash, node->children[0]->move);
|
||||
#endif /* TRANSPOSITION_TABLE_ENABLE */
|
||||
|
||||
// 返回
|
||||
|
|
Loading…
Reference in New Issue