Increase king tropism for drop games
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 20 Jun 2019 12:29:22 +0000 (14:29 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 21 Jun 2019 06:46:03 +0000 (08:46 +0200)
crazyhouse STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1287 W: 688 L: 569 D: 30
http://35.161.250.236:6543/tests/view/5d0b7c646e23db34f4206c03

crazyhouse LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 982 W: 536 L: 422 D: 24
http://35.161.250.236:6543/tests/view/5d0bc5fb6e23db34f4206c0e

src/evaluate.cpp

index 4865e96..1c3bf37 100644 (file)
@@ -568,7 +568,7 @@ namespace {
         score -= PawnlessFlank;
 
     // King tropism bonus, to anticipate slow motion attacks on our king
-    score -= FlankAttacks * kingFlankAttacks * (1 + pos.captures_to_hand() + !!pos.max_check_count());
+    score -= FlankAttacks * kingFlankAttacks * (1 + 3 * pos.captures_to_hand() + !!pos.max_check_count());
 
     // For drop games, king danger is independent of game phase
     if (pos.captures_to_hand())