From: ianfab Date: Sat, 25 Aug 2018 17:27:42 +0000 (+0200) Subject: Consider pieces in hand in king danger X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=89ec69b60b888bd449d8462e8a8a80dc7b07478f;p=fairystockfish.git Consider pieces in hand in king danger STC crazyhouse LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 583 W: 340 L: 231 D: 12 http://35.161.250.236:6543/tests/view/5b8191f06e23db0fbab0dcd6 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 37106a3..2ce7aec 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -490,6 +490,7 @@ namespace { + 143 * popcount(pos.blockers_for_king(Us) | unsafeChecks) - 848 * !pos.count(Them) - 9 * mg_value(score) / 8 + + 100 * (pos.piece_drops() ? pos.count_in_hand(Them, ALL_PIECES) : 0) + 40; // Transform the kingDanger units into a Score, and subtract it from the evaluation