From: Gontran Lemaire Date: Fri, 1 Dec 2017 22:02:45 +0000 (+0000) Subject: Remove QueenMinorsImbalance array #1340 X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=83e829c9dc900dcb00d673417062f4193481ff36;hp=f6981b1321357866e7aff688572e1d0e1fe57c08 Remove QueenMinorsImbalance array #1340 Remove QMI array and adjust bishop, knight and queen coefficients in QuadraticOurs and QuadraticTheirs arrays in compensation of this removal. STC : http://tests.stockfishchess.org/tests/view/5a21d8350ebc590ccbb8b5fe LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 49659 W: 9029 L: 8957 D: 31673 LTC : http://tests.stockfishchess.org/tests/view/5a33c0dd0ebc590ccbb8bd7e LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 45905 W: 5834 L: 5745 D: 34326 Bench: 5176807 --- diff --git a/src/material.cpp b/src/material.cpp index c0237e7c..8b659ecc 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -39,7 +39,7 @@ namespace { { 32, 255, -3 }, // Knight OUR PIECES { 0, 104, 4, 0 }, // Bishop { -26, -2, 47, 105, -149 }, // Rook - {-185, 24, 122, 137, -134, 0 } // Queen + {-189, 24, 117, 133, -134, -10 } // Queen }; const int QuadraticTheirs[][PIECE_TYPE_NB] = { @@ -50,13 +50,7 @@ namespace { { 9, 63, 0 }, // Knight OUR PIECES { 59, 65, 42, 0 }, // Bishop { 46, 39, 24, -24, 0 }, // Rook - { 101, 100, -37, 141, 268, 0 } // Queen - }; - - // QueenMinorsImbalance[opp_minor_count] is applied when only one side has a queen. - // It contains a bonus/malus for the side with the queen. - const int QueenMinorsImbalance[13] = { - 31, -8, -15, -25, -5 + { 97, 100, -42, 137, 268, 0 } // Queen }; // Endgame evaluation and scaling functions are accessed directly and not through @@ -112,10 +106,6 @@ namespace { bonus += pieceCount[Us][pt1] * v; } - // Special handling of Queen vs. Minors - if (pieceCount[Us][QUEEN] == 1 && pieceCount[Them][QUEEN] == 0) - bonus += QueenMinorsImbalance[pieceCount[Them][KNIGHT] + pieceCount[Them][BISHOP]]; - return bonus; }