From: lucasart Date: Sun, 9 Nov 2014 00:45:27 +0000 (+0800) Subject: Fix bounds of FutilityMoveCounts X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d709a5f1c52f253a09cd931d06b5197dcdafc3ba;ds=sidebyside Fix bounds of FutilityMoveCounts This is a left-over from ONE_PLY == 2. No functional change. Resolves #107 --- diff --git a/src/search.cpp b/src/search.cpp index 8d713fb8..8b483b02 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -57,7 +57,7 @@ namespace { inline Value razor_margin(Depth d) { return Value(512 + 32 * d); } // Futility lookup tables (initialized at startup) and their access functions - int FutilityMoveCounts[2][32]; // [improving][depth] + int FutilityMoveCounts[2][16]; // [improving][depth] inline Value futility_margin(Depth d) { return Value(200 * d); @@ -135,7 +135,7 @@ void Search::init() { } // Init futility move count array - for (int d = 0; d < 32; ++d) + for (int d = 0; d < 16; ++d) { FutilityMoveCounts[0][d] = int(2.4 + 0.773 * pow(d + 0.00, 1.8)); FutilityMoveCounts[1][d] = int(2.9 + 1.045 * pow(d + 0.49, 1.8));