1919
2020#include < algorithm>
2121#include < cassert>
22- #include < cfloat>
2322#include < cmath>
2423#include < cstring>
2524#include < iostream>
@@ -202,18 +201,6 @@ void Search::think() {
202201 goto finalize;
203202 }
204203
205- if (Options[" Write Search Log" ])
206- {
207- Log log (Options[" Search Log Filename" ]);
208- log << " \n Searching: " << RootPos.fen ()
209- << " \n infinite: " << Limits.infinite
210- << " ponder: " << Limits.ponder
211- << " time: " << Limits.time [RootPos.side_to_move ()]
212- << " increment: " << Limits.inc [RootPos.side_to_move ()]
213- << " moves to go: " << Limits.movestogo
214- << " \n " << std::endl;
215- }
216-
217204 // Reset the threads, still sleeping: will wake up at split time
218205 for (size_t i = 0 ; i < Threads.size (); ++i)
219206 Threads[i]->maxPly = 0 ;
@@ -225,18 +212,6 @@ void Search::think() {
225212
226213 Threads.timer ->run = false ; // Stop the timer
227214
228- if (Options[" Write Search Log" ])
229- {
230- Time::point elapsed = Time::now () - SearchTime + 1 ;
231-
232- Log log (Options[" Search Log Filename" ]);
233- log << " Nodes: " << RootPos.nodes_searched ()
234- << " \n Nodes/second: " << RootPos.nodes_searched () * 1000 / elapsed
235- << " \n Best move: " << move_to_uci (RootMoves[0 ].pv [0 ], RootPos.is_chess960 ())
236- << " \n Ponder move: " << move_to_uci (RootMoves[0 ].pv [1 ], RootPos.is_chess960 ())
237- << std::endl;
238- }
239-
240215finalize:
241216
242217 // When search is stopped this info is not printed
@@ -378,17 +353,6 @@ namespace {
378353 if (skill.candidates_size () && skill.time_to_pick (depth))
379354 skill.pick_move ();
380355
381- if (Options[" Write Search Log" ])
382- {
383- RootMove& rm = RootMoves[0 ];
384- if (skill.best != MOVE_NONE)
385- rm = *std::find (RootMoves.begin (), RootMoves.end (), skill.best );
386-
387- Log log (Options[" Search Log Filename" ]);
388- log << pretty_pv (pos, depth, rm.score , Time::now () - SearchTime, &rm.pv [0 ])
389- << std::endl;
390- }
391-
392356 // Have we found a "mate in x"?
393357 if ( Limits.mate
394358 && bestValue >= VALUE_MATE_IN_MAX_PLY
0 commit comments