ai: tt: 查询置换表是否命中后不再判断是否为根节点

This commit is contained in:
Calcitem 2019-10-09 23:22:41 +08:00
parent 5606c6e579
commit 30c5df101e
1 changed files with 2 additions and 1 deletions

View File

@ -540,7 +540,8 @@ value_t AIAlgorithm::search(depth_t depth, value_t alpha, value_t beta, Node *no
value_t probeVal = TT::probeHash(hash, depth, alpha, beta, bestMove, type);
if (probeVal != INT16_MIN /* TODO: valUNKOWN */ && node != root) {
if (probeVal != INT16_MIN /* TODO: valUNKOWN */) {
assert(node != root);
#ifdef TRANSPOSITION_TABLE_DEBUG
hashHitCount++;
#endif