mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Use probe() as name for looking up into an hash table
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
12
src/uci.cpp
12
src/uci.cpp
@@ -182,8 +182,7 @@ namespace {
|
||||
|
||||
string token;
|
||||
SearchLimits limits;
|
||||
Move searchMoves[MAX_MOVES] = { MOVE_NONE };
|
||||
Move* cur = searchMoves;
|
||||
Move searchMoves[MAX_MOVES], *cur = searchMoves;
|
||||
int time[] = { 0, 0 }, inc[] = { 0, 0 };
|
||||
|
||||
while (up >> token)
|
||||
@@ -209,19 +208,16 @@ namespace {
|
||||
else if (token == "movetime")
|
||||
up >> limits.maxTime;
|
||||
else if (token == "searchmoves")
|
||||
{
|
||||
while (up >> token)
|
||||
*cur++ = move_from_uci(pos, token);
|
||||
|
||||
*cur = MOVE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
assert(pos.is_ok());
|
||||
|
||||
*cur = MOVE_NONE;
|
||||
limits.time = time[pos.side_to_move()];
|
||||
limits.increment = inc[pos.side_to_move()];
|
||||
|
||||
assert(pos.is_ok());
|
||||
|
||||
return think(pos, limits, searchMoves);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user