]> git.sesse.net Git - stockfish/commitdiff
Roll back unneeded tbprobe patches.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Dec 2021 19:01:41 +0000 (20:01 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Dec 2021 19:01:41 +0000 (20:01 +0100)
src/syzygy/tbprobe.cpp

index 887160c7cfa3081b5ff8f521dcf755e2fac31363..96b2970f245537d16812fc2e9c35b27469aed86c 100644 (file)
@@ -76,7 +76,7 @@ int MapB1H1H7[SQUARE_NB];
 int MapA1D1D4[SQUARE_NB];
 int MapKK[10][SQUARE_NB]; // [MapA1D1D4][SQUARE_NB]
 
-int Binomial[7][SQUARE_NB];    // [k][n] k elements from a set of n elements
+int Binomial[6][SQUARE_NB];    // [k][n] k elements from a set of n elements
 int LeadPawnIdx[6][SQUARE_NB]; // [leadPawnsCnt][SQUARE_NB]
 int LeadPawnsSize[6][4];       // [leadPawnsCnt][FILE_A..FILE_D]
 
@@ -1322,7 +1322,7 @@ void Tablebases::init(const std::string& paths) {
     Binomial[0][0] = 1;
 
     for (int n = 1; n < 64; n++) // Squares
-        for (int k = 0; k < 7 && k <= n; ++k) // Pieces
+        for (int k = 0; k < 6 && k <= n; ++k) // Pieces
             Binomial[k][n] =  (k > 0 ? Binomial[k - 1][n - 1] : 0)
                             + (k < n ? Binomial[k    ][n - 1] : 0);