Use UCI names in Search::LimitsType

There is no need to "invent" different names
from the original UCI parameters.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-03-27 12:27:57 +02:00
parent a56322fde8
commit 4124c94583
6 changed files with 39 additions and 43 deletions

View File

@@ -74,13 +74,13 @@ void benchmark(int argc, char* argv[]) {
Options["Threads"] = threads;
if (valType == "time")
limits.maxTime = 1000 * atoi(valStr.c_str()); // maxTime is in ms
limits.movetime = 1000 * atoi(valStr.c_str()); // movetime is in ms
else if (valType == "nodes")
limits.maxNodes = atoi(valStr.c_str());
limits.nodes = atoi(valStr.c_str());
else
limits.maxDepth = atoi(valStr.c_str());
limits.depth = atoi(valStr.c_str());
if (fenFile != "default")
{
@@ -112,8 +112,8 @@ void benchmark(int argc, char* argv[]) {
if (valType == "perft")
{
int64_t cnt = Search::perft(pos, limits.maxDepth * ONE_PLY);
cerr << "\nPerft " << limits.maxDepth << " leaf nodes: " << cnt << endl;
int64_t cnt = Search::perft(pos, limits.depth * ONE_PLY);
cerr << "\nPerft " << limits.depth << " leaf nodes: " << cnt << endl;
nodes += cnt;
}
else