Tweak isolated pawn penalty for losing chess variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 18 Dec 2018 20:09:16 +0000 (21:09 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 19 Dec 2018 10:02:04 +0000 (11:02 +0100)
giveaway STC
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 1699 W: 626 L: 526 D: 547
http://35.161.250.236:6543/tests/view/5c1954786e23db24728955bb

losers STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 4610 W: 2045 L: 1890 D: 675
http://35.161.250.236:6543/tests/view/5c1954b76e23db24728955be

src/pawns.cpp

index bea3e55..04b727b 100644 (file)
@@ -139,7 +139,7 @@ namespace {
             score += Connected[opposed][bool(phalanx)][popcount(supported)][relative_rank(Us, s, pos.max_rank())];
 
         else if (!neighbours)
-            score -= Isolated, e->weakUnopposed[Us] += !opposed;
+            score -= Isolated * (1 + 2 * pos.must_capture()), e->weakUnopposed[Us] += !opposed;
 
         else if (backward)
             score -= Backward, e->weakUnopposed[Us] += !opposed;