projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ce063f5
)
Add 'mate' limit to 'bench' command
author
Marco Costalba
<mcostalba@gmail.com>
Sun, 30 Dec 2012 14:48:37 +0000 (15:48 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 30 Dec 2012 14:49:02 +0000 (15:49 +0100)
It is now possible to run SF on a 'mate in x' testsuite.
For instance in case of a file with fen strings of
positions with mate in 10 we can now 'bench' on it:
stockfish bench 128 1 10 mate_in_10.epd mate
No functional change.
src/benchmark.cpp
patch
|
blob
|
history
diff --git
a/src/benchmark.cpp
b/src/benchmark.cpp
index
47face7
..
cb54514
100644
(file)
--- a/
src/benchmark.cpp
+++ b/
src/benchmark.cpp
@@
-82,6
+82,9
@@
void benchmark(const Position& current, istream& is) {
else if (limitType == "nodes")
limits.nodes = atoi(limit.c_str());
+ else if (limitType == "mate")
+ limits.mate = atoi(limit.c_str());
+
else
limits.depth = atoi(limit.c_str());