From: Marco Costalba Date: Sat, 7 Apr 2012 13:06:42 +0000 (+0100) Subject: Fix 'bench' for Chess960 case X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e0cae4bef8031a709c93eed1eb2754aa8ad806f0;hp=9546b79e204faef2e2759b481b09a97bdab0fb76 Fix 'bench' for Chess960 case Now a fen file with Chess960 positions is correctly parsed. But it is mandatory to set "UCI_Chess960" option _before_ to call bench. Note that this was not needed/possible before adding the possibility to call 'bench' from command prompt. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 5d8757a6..9b2e81e1 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -112,7 +112,7 @@ void benchmark(const Position& current, istream& is) { for (size_t i = 0; i < fens.size(); i++) { - Position pos(fens[i], false, Threads.main_thread()); + Position pos(fens[i], Options["UCI_Chess960"], Threads.main_thread()); cerr << "\nPosition: " << i + 1 << '/' << fens.size() << endl;