Skip to content

Commit f266d4e

Browse files
committed
Merge branch 'master' of https://github.com/fairy-stockfish/Fairy-Stockfish into tools
2 parents 464db49 + 291c72b commit f266d4e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/search.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,12 @@ void MainThread::search() {
196196
{
197197
// rotate MOVE_NONE to front (for optional game end)
198198
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;
199+
// do not claim when pondering
200+
if (!ponder)
201+
sync_cout << ( result == VALUE_DRAW ? "1/2-1/2 {Draw}"
202+
: (rootPos.side_to_move() == BLACK ? -result : result) == VALUE_MATE ? "1-0 {White wins}"
203+
: "0-1 {Black wins}")
204+
<< sync_endl;
203205
}
204206
else
205207
sync_cout << "info depth 0 score "

0 commit comments

Comments
 (0)