X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=c6da2fc4851acee54e5b60f140cb054d3066e5f5;hp=a2998e62abaed2611dd24851bcf076dae9247b96;hb=673bc5526fa3d352f823ad144fb521b5dc98f45c;hpb=adb71b8096436a54bf2326d5c69991b16ba5bafa diff --git a/src/uci.cpp b/src/uci.cpp index a2998e62..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) @@ -212,7 +212,7 @@ namespace { void go(Position& pos, istringstream& is) { Search::LimitsType limits; - std::set searchMoves; + vector searchMoves; string token; while (is >> token) @@ -239,7 +239,7 @@ namespace { limits.ponder = true; else if (token == "searchmoves") while (is >> token) - searchMoves.insert(move_from_uci(pos, token)); + searchMoves.push_back(move_from_uci(pos, token)); } Threads.start_searching(pos, limits, searchMoves); @@ -263,8 +263,8 @@ namespace { int e = time.elapsed(); - std::cout << "\nNodes " << n - << "\nTime (ms) " << e - << "\nNodes/second " << int(n / (e / 1000.0)) << std::endl; + cout << "\nNodes " << n + << "\nTime (ms) " << e + << "\nNodes/second " << int(n / (e / 1000.0)) << endl; } }