search: 解决自对弈时不能正常判断三次重复局面和导致死循环的问题

This commit is contained in:
Calcitem 2020-11-28 11:41:01 +08:00
parent 8758ea0c32
commit 58efd0268c
1 changed files with 2 additions and 2 deletions

View File

@ -117,9 +117,9 @@ int Thread::search()
nRepetition = 0; nRepetition = 0;
return 3; return 3;
} }
} else {
moveHistory.push_back(key);
} }
moveHistory.push_back(key);
} }
if (rootPos->get_phase() == PHASE_PLACING) { if (rootPos->get_phase() == PHASE_PLACING) {