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:
Marco Costalba
2011-04-26 14:10:02 +02:00
parent 321320b081
commit 1d0159075e
6 changed files with 16 additions and 20 deletions

View File

@@ -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);
}