From 7adaf8bc89126c30544b809a0d51336612f1c2ac Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 1 May 2020 20:25:05 +0200 Subject: [PATCH] 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 --- src/evaluate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.0.4