X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=144776aac160bcc411bdc86a50592e98aa537abd;hp=8410f73bbf8ee8ad49f45f1e1777cb200e745759;hb=a903ed07e02780aec98f97461329acb78d7242c8;hpb=a67c22611aea4b643e8278fa6007da316bd06b13 diff --git a/src/search.cpp b/src/search.cpp index 8410f73b..144776aa 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -232,12 +232,9 @@ void Search::think() { Log log(Options["Search Log Filename"]); log << "Nodes: " << RootPos.nodes_searched() << "\nNodes/second: " << RootPos.nodes_searched() * 1000 / elapsed - << "\nBest move: " << move_to_san(RootPos, RootMoves[0].pv[0]); - - StateInfo st; - RootPos.do_move(RootMoves[0].pv[0], st); - log << "\nPonder move: " << move_to_san(RootPos, RootMoves[0].pv[1]) << std::endl; - RootPos.undo_move(RootMoves[0].pv[0]); + << "\nBest move: " << move_to_uci(RootMoves[0].pv[0], RootPos.is_chess960()) + << "\nPonder move: " << move_to_uci(RootMoves[0].pv[1], RootPos.is_chess960()) + << std::endl; } finalize: