else if (token == "searchmoves")
{
int numOfMoves = 0;
- while (!uip.eof())
- {
- uip >> token;
+ while (uip >> token)
searchMoves[numOfMoves++] = move_from_string(RootPosition, token);
- }
+
searchMoves[numOfMoves] = MOVE_NONE;
}
}
- if (moveTime)
- infinite = true; // HACK
-
assert(RootPosition.is_ok());
return think(RootPosition, infinite, ponder, RootPosition.side_to_move(),
string token;
int depth, tm, n;
- Position pos = RootPosition;
+ Position pos(RootPosition);
if (!(uip >> depth))
return;