From 89ec69b60b888bd449d8462e8a8a80dc7b07478f Mon Sep 17 00:00:00 2001 From: ianfab Date: Sat, 25 Aug 2018 19:27:42 +0200 Subject: [PATCH] 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 --- src/evaluate.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 -- 1.7.0.4