1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Add 'mate' limit to 'bench' command

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.
This commit is contained in:
Marco Costalba 2012-12-30 15:48:37 +01:00
parent ce063f59cd
commit e1d681458e

View file

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