X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=50eb3aa32c3871649cf242833b657ceec73ee497;hp=f60411993fcc0877ed83a8a632f25945018aa9db;hb=3a3ca6af0390d74427c218f29cb5fe1a913efb42;hpb=302e0f70c653bfcca4338d7be71dfdd1166da910 diff --git a/src/pawns.cpp b/src/pawns.cpp index f6041199..50eb3aa3 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -131,7 +131,7 @@ namespace { if (support | phalanx) { int v = Connected[r] * (2 + bool(phalanx) - opposed) - + 17 * popcount(support); + + 21 * popcount(support); score += make_score(v, v * (r - 2) / 4); } @@ -198,7 +198,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) { b = theirPawns & file_bb(f); int theirRank = b ? relative_rank(Us, frontmost_sq(Them, b)) : 0; - int d = std::min(f, ~f); + File d = map_to_queenside(f); bonus += make_score(ShelterStrength[d][ourRank], 0); if (ourRank && (ourRank == theirRank - 1))