X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=b18d29d06b28715fec73884130ed2cd11260921f;hp=921e3007d0733788de389a676da524919ab06016;hb=213166ba225bcefbbe7dbecdacfd726dfb6c34f9;hpb=d6252ef202f43d42d05b80145f3014da4d22863e;ds=inline diff --git a/src/material.cpp b/src/material.cpp index 921e3007..b18d29d0 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -206,12 +206,6 @@ Entry* probe(const Position& pos) { e->factor[BLACK] = uint8_t(npm_b < RookValueMg ? SCALE_FACTOR_DRAW : npm_w <= BishopValueMg ? 4 : 14); - if (pos.count(WHITE) == 1 && npm_w - npm_b <= BishopValueMg) - e->factor[WHITE] = (uint8_t) SCALE_FACTOR_ONEPAWN; - - if (pos.count(BLACK) == 1 && npm_b - npm_w <= BishopValueMg) - e->factor[BLACK] = (uint8_t) SCALE_FACTOR_ONEPAWN; - // Evaluate the material imbalance. We use PIECE_TYPE_NONE as a place holder // for the bishop pair "extended piece", which allows us to be more flexible // in defining bishop pair bonuses.