repetition: Insert or clear keys to posKeyHistory when enabled UCI_DO_BEST_MOVE
This commit is contained in:
parent
13510a56e2
commit
1f13ab7ec6
|
@ -199,6 +199,12 @@ void Thread::emitCommand()
|
|||
#ifdef UCI_DO_BEST_MOVE
|
||||
rootPos->command(strCommand.c_str());
|
||||
us = rootPos->side_to_move();
|
||||
|
||||
if (strCommand.size() > strlen("-(1,2)")) {
|
||||
posKeyHistory.push_back(rootPos->key());
|
||||
} else {
|
||||
posKeyHistory.clear();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ANALYZE_POSITION
|
||||
|
|
Loading…
Reference in New Issue