mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Retire move_to_san()
Now "Write Search Log" will pring moves in UCI format, consistent with all the rest. This functionality is not aimed at end-users anyway. It's hardly useful at all, in fact. Also, pretty-printing SAN moves is something that better belongs in the GUI than in the engine. No functional change.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user