Cleaned up source code.

This commit is contained in:
nodchip
2020-08-10 08:52:34 +09:00
parent 7f1f08d094
commit 4f97d3446d
12 changed files with 22 additions and 41 deletions
+8 -4
View File
@@ -992,7 +992,11 @@ moves_loop: // When in check, search starts from here
ss->moveCount = ++moveCount;
if (rootNode && thisThread == Threads.main() && Time.elapsed() > 3000 && !Limits.silent)
if (rootNode && thisThread == Threads.main() && Time.elapsed() > 3000
#if defined(EVAL_LEARN)
&& !Limits.silent
#endif
)
sync_cout << "info depth " << depth
<< " currmove " << UCI::move(move, pos.is_chess960())
<< " currmovenumber " << moveCount + thisThread->pvIdx << sync_endl;
@@ -2066,10 +2070,10 @@ namespace Learner
// Increase the generation of the substitution table for this thread because it is a new search.
//TT.new_search(th->thread_id());
// If you call new_search here, it may be a loss because you can't use the previous search result.
// ª If you call new_search here, it may be a loss because you can't use the previous search result.
// Do not do this here, but caller should do TT.new_search(th->thread_id()) for each station ...
// Because we want to avoid reaching the same final diagram, use the substitution table commonly for all threads when generating teachers.
// ¨Because we want to avoid reaching the same final diagram, use the substitution table commonly for all threads when generating teachers.
//#endif
}
}
@@ -2259,7 +2263,7 @@ namespace Learner
}
// Pass PV_is(ok) to eliminate this PV, there may be NULL_MOVE in the middle.
// PV should not be NULL_MOVE because it is PV
// ¨ PV should not be NULL_MOVE because it is PV
// MOVE_WIN has never been thrust. (For now)
for (Move move : rootMoves[0].pv)
{