tt: search: Remove unused rotate/mirror code

This commit is contained in:
Calcitem 2021-01-02 15:45:56 +08:00
parent 863d091ac9
commit 35f617d97e
1 changed files with 0 additions and 24 deletions

View File

@ -90,30 +90,6 @@ out:
bool TranspositionTable::search(const Key &key, TTEntry &tte)
{
return TT.find(key, tte);
// TODO: Change position
#if 0
if (iter != hashmap.end())
return iter;
// 变换局面,查找 key (废弃)
tempStateShift = st;
for (int i = 0; i < 2; i++) {
if (i)
tempStateShift.mirror(false);
for (int j = 0; j < 2; j++) {
if (j)
tempStateShift.turn(false);
for (int k = 0; k < 4; k++) {
tempStateShift.rotate(k * 90, false);
iter = hashmap.find(tempStateShift.getHash());
if (iter != hashmap.end())
return iter;
}
}
}
#endif
}
void TranspositionTable::prefetch(const Key &key)