X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=e625405d5eec56d9759df974dfda90cc898aa2d8;hb=81cd417b4584b0e3830940c5cb122c898afde08a;hp=f9d2aac69be320064a1acead3933610b499e61d7;hpb=9bacd921fa1618b2113d4ca41b0cbd9d3699d466;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index f9d2aac6..e625405d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -30,7 +30,6 @@ #include "evaluate.h" #include "history.h" #include "misc.h" -#include "move.h" #include "movegen.h" #include "movepick.h" #include "search.h" @@ -353,10 +352,9 @@ int64_t Search::perft(Position& pos, Depth depth) { } -/// think() is the external interface to Stockfish's search, and is called when -/// the program receives the UCI 'go' command. It initializes various global -/// variables, and calls id_loop(). It returns false when a "quit" command is -/// received during the search. +/// think() is the external interface to Stockfish's search, and is called by the +/// main thread when the program receives the UCI 'go' command. It searches from +/// RootPosition and at the end prints the "bestmove" to output. void Search::think() { @@ -680,7 +678,7 @@ namespace { { // If we are allowed to ponder do not stop the search now but // keep pondering until GUI sends "ponderhit" or "stop". - if (Limits.ponder) // FIXME racing + if (Limits.ponder) Signals.stopOnPonderhit = true; else Signals.stop = true;