From d709a5f1c52f253a09cd931d06b5197dcdafc3ba Mon Sep 17 00:00:00 2001 From: lucasart Date: Sun, 9 Nov 2014 08:45:27 +0800 Subject: [PATCH] Fix bounds of FutilityMoveCounts This is a left-over from ONE_PLY == 2. No functional change. Resolves #107 --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.39.2