From: Fabian Fichter Date: Fri, 24 May 2019 17:55:16 +0000 (+0200) Subject: Tweak connected bonus for horde chess X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=bd9b55451b622d31414d1f9993ccaeeb8079f206;p=fairystockfish.git Tweak connected bonus for horde chess horde STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 443 W: 273 L: 165 D: 5 http://35.161.250.236:6543/tests/view/5ce8fc696e23db34f4206b38 horde LTC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 394 W: 250 L: 142 D: 2 http://35.161.250.236:6543/tests/view/5ce914f66e23db34f4206b3b --- diff --git a/src/pawns.cpp b/src/pawns.cpp index 2acdf0b..921e53b 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -130,6 +130,8 @@ namespace { if (support | phalanx) { int v = (phalanx ? 3 : 2) * Connected[r]; + if (r >= RANK_4 && pos.count(Us) > popcount(pos.board_bb()) / 4) + v = std::max(v, popcount(support | phalanx) * 100); v = 17 * popcount(support) + (v >> (opposed + 1)); score += make_score(v, v * (r - 2) / 4); }