We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 464db49 + 291c72b commit f266d4eCopy full SHA for f266d4e
src/search.cpp
@@ -196,10 +196,12 @@ void MainThread::search() {
196
{
197
// rotate MOVE_NONE to front (for optional game end)
198
std::rotate(rootMoves.rbegin(), rootMoves.rbegin() + 1, rootMoves.rend());
199
- sync_cout << ( result == VALUE_DRAW ? "1/2-1/2 {Draw}"
200
- : (rootPos.side_to_move() == BLACK ? -result : result) == VALUE_MATE ? "1-0 {White wins}"
201
- : "0-1 {Black wins}")
202
- << sync_endl;
+ // do not claim when pondering
+ if (!ponder)
+ sync_cout << ( result == VALUE_DRAW ? "1/2-1/2 {Draw}"
+ : (rootPos.side_to_move() == BLACK ? -result : result) == VALUE_MATE ? "1-0 {White wins}"
203
+ : "0-1 {Black wins}")
204
+ << sync_endl;
205
}
206
else
207
sync_cout << "info depth 0 score "
0 commit comments