X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=068d88e702092a67259ae312165bb33683cb101e;hp=b9b4bb63988ec28f6425592b937d8118b6ce2205;hb=3ed86ed3f95f712587bea62f4a7fc474812db458;hpb=e4d34e18153c953e63c49dc1c9dfd8ccdaa259f0;ds=sidebyside diff --git a/src/material.cpp b/src/material.cpp index b9b4bb63..068d88e7 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -35,10 +35,9 @@ namespace { const int NoPawnsSF[4] = { 6, 12, 32 }; // Polynomial material balance parameters - const Value RedundantMajor = Value(160); // pair pawn knight bishop rook queen - const int LinearCoefficients[6] = { 1852, -162, -1122, -183, 302, 1 }; + const int LinearCoefficients[6] = { 1852, -162, -1122, -183, 249, -52 }; const int QuadraticCoefficientsSameColor[][PIECE_TYPE_NB] = { // pair pawn knight bishop rook queen @@ -105,10 +104,6 @@ namespace { int pt1, pt2, pc, v; int value = 0; - // Penalty for major piece redundancy - if (pieceCount[Us][ROOK] + pieceCount[Us][QUEEN] > 1) - value -= RedundantMajor; - // Second-degree polynomial material imbalance by Tord Romstad for (pt1 = NO_PIECE_TYPE; pt1 <= QUEEN; ++pt1) {