Tweak capture the flag bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 20 Oct 2018 12:36:20 +0000 (14:36 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 20 Oct 2018 12:36:20 +0000 (14:36 +0200)
king of the hill STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 2713 W: 1223 L: 1095 D: 395
http://35.161.250.236:6543/tests/view/5bc9a43a6e23db7639060c0f

racing kings STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1961 W: 955 L: 833 D: 173
http://35.161.250.236:6543/tests/view/5bc9a44b6e23db7639060c12

src/evaluate.cpp

index e6772fb..6995e38 100644 (file)
@@ -824,7 +824,7 @@ namespace {
                 int dist =  distance(s1, s2)
                           + (can_block ? popcount(pos.attackers_to(s2) & pos.pieces(Them)) : 0)
                           + !!(pos.pieces(Us) & s2);
-                score += make_score(3000, 3000) / (1 + dist * (can_block && pos.checking_permitted() ? dist : 1));
+                score += make_score(2500, 2500) / (1 + dist * (can_block && pos.checking_permitted() ? dist : 1));
             }
         }
     }