X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;fp=src%2Fmaterial.cpp;h=c0237e7cac7507f3442977d0ffc153c3058544ef;hp=d67b95cae96413746d77176e1dcf9bcb31c73b98;hb=03a9b3bd8d79e1677f1c74cf7d8f8036795675c6;hpb=53239d7d3df44208a915fce84a5745101d3a2ea6 diff --git a/src/material.cpp b/src/material.cpp index d67b95ca..c0237e7c 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -53,11 +53,6 @@ namespace { { 101, 100, -37, 141, 268, 0 } // Queen }; - // PawnSet[pawn count] contains a bonus/malus indexed by number of pawns - const int PawnSet[] = { - 24, -32, 107, -51, 117, -9, -126, -21, 31 - }; - // 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] = { @@ -100,9 +95,9 @@ namespace { const Color Them = (Us == WHITE ? BLACK : WHITE); - int bonus = PawnSet[pieceCount[Us][PAWN]]; + int bonus = 0; - // Second-degree polynomial material imbalance by Tord Romstad + // Second-degree polynomial material imbalance, by Tord Romstad for (int pt1 = NO_PIECE_TYPE; pt1 <= QUEEN; ++pt1) { if (!pieceCount[Us][pt1])