X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=11ba939a95153384267210921f8032ffbf5199cb;hp=9f2786230477737160147feba907bb5fed0ed02b;hb=4509eb1342fe282d08bd90340efaff4df5947a87;hpb=7ad59d9ac9cbeae8b95843a720a53c99bb1f0d3b diff --git a/src/search.cpp b/src/search.cpp index 9f278623..11ba939a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -217,9 +217,12 @@ void Search::think() { RootPos.this_thread()->wait_for(Signals.stop); } - sync_cout << "bestmove " << UCI::format_move(RootMoves[0].pv[0], RootPos.is_chess960()) - << " ponder " << UCI::format_move(RootMoves[0].pv[1], RootPos.is_chess960()) - << sync_endl; + sync_cout << "bestmove " << UCI::format_move(RootMoves[0].pv[0], RootPos.is_chess960()); + + if (RootMoves[0].pv.size() > 1) + std::cout << " ponder " << UCI::format_move(RootMoves[0].pv[1], RootPos.is_chess960()); + + std::cout << sync_endl; }