From: Marco Costalba Date: Thu, 17 Feb 2011 07:55:56 +0000 (+0100) Subject: Sync Root new depth to what we do in search() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=932ae761c6e3fd3e9b202283379e487a5c187989;hp=29fa6f3c5f8a700567a20c0dd2caf18876f736a0 Sync Root new depth to what we do in search() This allow us to restore the old depth 12 benchmark and fixes one and for all the depth mess. Test confirms no regression: After 5658 games 892 - 924 - 3842 ELO -1 (+- 5.2) Signed-off-by: Marco Costalba --- diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 5eab9f77..bb43f4e6 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -77,7 +77,7 @@ void benchmark(int argc, char* argv[]) { ttSize = argc > 2 ? argv[2] : "128"; threads = argc > 3 ? argv[3] : "1"; - valStr = argc > 4 ? argv[4] : "11"; + valStr = argc > 4 ? argv[4] : "12"; posFile = argc > 5 ? argv[5] : "default"; valType = argc > 6 ? argv[6] : "depth"; diff --git a/src/main.cpp b/src/main.cpp index 75268175..0f7d0e78 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -100,7 +100,7 @@ int main(int argc, char* argv[]) { { if (string(argv[1]) != "bench" || argc > 7) cout << "Usage: stockfish bench [hash size = 128] [threads = 1] " - << "[limit = 11] [fen positions file = default] " + << "[limit = 12] [fen positions file = default] " << "[depth, time, perft or node limited = depth]" << endl; else benchmark(argc, argv); diff --git a/src/search.cpp b/src/search.cpp index 0f937ed0..fd5378f9 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1070,7 +1070,7 @@ split_point_start: // At split points actual search starts from here // Update current move (this must be done after singular extension search) ss->currentMove = move; - newDepth = depth - (!Root ? ONE_PLY : DEPTH_ZERO) + ext; + newDepth = depth - ONE_PLY + ext; // Step 12. Futility pruning (is omitted in PV nodes) if ( !PvNode