X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=f60411993fcc0877ed83a8a632f25945018aa9db;hp=1ae65bf181bcb74dac8755704776bf95a31a3a4c;hb=7e4c3256aab178f303578b4c4a31c59d43421640;hpb=64af5434ed2b775b054993de85aa015e5a120da3 diff --git a/src/pawns.cpp b/src/pawns.cpp index 1ae65bf1..f6041199 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -130,7 +130,7 @@ namespace { // Score this pawn if (support | phalanx) { - int v = Connected[r] * (phalanx ? 3 : 2) / (opposed ? 2 : 1) + int v = Connected[r] * (2 + bool(phalanx) - opposed) + 17 * popcount(support); score += make_score(v, v * (r - 2) / 4);