X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=b195b871346cdd4b03a331a685a19d5294cf3969;hp=cfd253b1f586a5c8d7ddda7f50bb8b5b8162eeac;hb=2731bbaf6b4bed23abaae8de5c1fa9f373e30e57;hpb=7eaea3848c9e8a388c0b79cee6fba6bf3cd32108 diff --git a/src/uci.cpp b/src/uci.cpp index cfd253b1..b195b871 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -42,7 +42,7 @@ namespace { // A list to keep track of the position states along the setup moves (from the // start position to the position just before the search starts). Needed by // 'draw by repetition' detection. - StateListPtr States(new std::vector(1)); + StateListPtr States(new std::deque(1)); // position() is called when engine receives the "position" UCI command. @@ -68,14 +68,14 @@ namespace { else return; - States = StateListPtr(new std::vector(1)); + States = StateListPtr(new std::deque(1)); pos.set(fen, Options["UCI_Chess960"], &States->back(), Threads.main()); // Parse move list (if any) while (is >> token && (m = UCI::to_move(pos, token)) != MOVE_NONE) { States->push_back(StateInfo()); - pos.do_move(m, States->back(), pos.gives_check(m, CheckInfo(pos))); + pos.do_move(m, States->back(), pos.gives_check(m)); } } @@ -108,7 +108,7 @@ namespace { // the thinking time and other parameters from the input string, then starts // the search. - void go(const Position& pos, istringstream& is) { + void go(Position& pos, istringstream& is) { Search::LimitsType limits; string token;