X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=c1247b6348ff5069a9dfcc42282a14bf64d37970;hp=9cc8eeadc470b7e2f20a9f91a9c5ee8a4c1f9568;hb=b6e9d901b0f82e8500acfad590649bdad9a7756f;hpb=70d20326b0d53a39bbfa32f7c2b749e7dbebb985 diff --git a/src/material.cpp b/src/material.cpp index 9cc8eead..c1247b63 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -35,8 +35,8 @@ namespace { const int NoPawnsSF[4] = { 6, 12, 32 }; // Polynomial material balance parameters - const Value RedundantQueenPenalty = Value(320); - const Value RedundantRookPenalty = Value(554); + const Value RedundantQueen = Value(320); + const Value RedundantRook = Value(554); // pair pawn knight bishop rook queen const int LinearCoefficients[6] = { 1617, -162, -1172, -190, 105, 26 }; @@ -46,7 +46,7 @@ namespace { { 7 }, // Bishop pair { 39, 2 }, // Pawn { 35, 271, -4 }, // Knight - { 7, 25, 4, 7 }, // Bishop + { 7, 105, 4, 7 }, // Bishop { -27, -2, 46, 100, 56 }, // Rook { 58, 29, 83, 148, -3, -25 } // Queen }; @@ -109,8 +109,8 @@ namespace { // Redundancy of major pieces, formula based on Kaufman's paper // "The Evaluation of Material Imbalances in Chess" if (pieceCount[Us][ROOK] > 0) - value -= RedundantRookPenalty * (pieceCount[Us][ROOK] - 1) - + RedundantQueenPenalty * pieceCount[Us][QUEEN]; + value -= RedundantRook * (pieceCount[Us][ROOK] - 1) + + RedundantQueen * pieceCount[Us][QUEEN]; // Second-degree polynomial material imbalance by Tord Romstad for (pt1 = NO_PIECE_TYPE; pt1 <= QUEEN; pt1++)