From: ianfab Date: Mon, 13 Aug 2018 19:28:44 +0000 (+0200) Subject: Tweak bonus for racing kings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=bfaf93dccb7a35c308f0d7d017b6db3f1c5deccf;p=fairystockfish.git Tweak bonus for racing kings racing kings STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 469 W: 262 L: 162 D: 45 http://35.161.250.236:6543/tests/view/5b71dcbb6e23db0fbab0dca0 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4333e24..b9ffc8d 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -815,7 +815,7 @@ namespace { int dist = distance(pos.square(Us), s) + popcount(pos.attackers_to(s) & pos.pieces(Them)) + !!(pos.pieces(Us) & s); - score += make_score(3000, 3000) / (1 + dist * dist); + score += make_score(3000, 3000) / (1 + dist * (pos.checking_permitted() ? dist : 1)); } }