X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=c6da2fc4851acee54e5b60f140cb054d3066e5f5;hp=a10920a9714ab381a4a2d4b94fbdf51140b627b8;hb=c2fc80e5d16339266b5bf6687fa843ff65de3b3e;hpb=7eb6a488ade31254151fd516aa4c94fc56b84a1f diff --git a/src/uci.cpp b/src/uci.cpp index a10920a9..c6da2fc4 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -56,7 +56,7 @@ namespace { void uci_loop(const string& args) { - Position pos(StartFEN, false, 0); // The root position + Position pos(StartFEN, false, Threads.main_thread()); // The root position string cmd, token; while (token != "quit") @@ -113,7 +113,7 @@ void uci_loop(const string& args) { pos.print(); else if (token == "flip") - pos.flip_me(); + pos.flip(); else if (token == "eval") cout << Eval::trace(pos) << endl; @@ -167,7 +167,7 @@ namespace { else return; - pos.from_fen(fen, Options["UCI_Chess960"]); + pos.from_fen(fen, Options["UCI_Chess960"], Threads.main_thread()); // Parse move list (if any) while (is >> token && (m = move_from_uci(pos, token)) != MOVE_NONE)