X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=38d3204c8449d3f0f3b607e0fd2f25e036889450;hp=993fa853f47ce51d95c167ae3c951f70fce4f27b;hb=209e94203f8c4d0a48405192d1e71c80f28f3159;hpb=b7ecdaada7e2690dd286c41d3a73463f06fb088f diff --git a/src/search.cpp b/src/search.cpp index 993fa853..38d3204c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -292,7 +292,7 @@ void MainThread::search() { if (bestThread->rootMoves[0].score >= VALUE_TB_WIN_IN_MAX_PLY) { - // Make sure we pick the shortest mate + // Make sure we pick the shortest mate / TB conversion if (th->rootMoves[0].score > bestThread->rootMoves[0].score) bestThread = th; } @@ -867,7 +867,7 @@ namespace { if (nullValue >= beta) { - // Do not return unproven mate scores + // Do not return unproven mate or TB scores if (nullValue >= VALUE_TB_WIN_IN_MAX_PLY) nullValue = beta;