From: Fabian Fichter Date: Fri, 1 May 2020 18:25:05 +0000 (+0200) Subject: Penalty for inaccessible king ring squares X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7adaf8bc89126c30544b809a0d51336612f1c2ac;p=fairystockfish.git Penalty for inaccessible king ring squares janggi LLR: 2.99 (-2.94,2.94) [0.00,10.00] Total: 610 W: 330 L: 226 D: 54 xiangqi Total: 400 W: 113 L: 115 D: 172 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 900a8a8..d8de620 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -563,7 +563,7 @@ namespace { kingDanger += kingAttackersCount[Them] * kingAttackersWeight[Them] + kingAttackersCountInHand[Them] * kingAttackersWeight[Them] + kingAttackersCount[Them] * kingAttackersWeightInHand[Them] - + 185 * popcount(kingRing[Us] & weak) * (1 + pos.captures_to_hand() + pos.check_counting()) + + 185 * popcount(kingRing[Us] & (weak | ~pos.board_bb(Us, KING))) * (1 + pos.captures_to_hand() + pos.check_counting()) + 148 * popcount(unsafeChecks) + 98 * popcount(pos.blockers_for_king(Us)) + 69 * kingAttacksCount[Them] * (2 + 8 * pos.check_counting() + pos.captures_to_hand()) / 2