Increase mobility bonus
authorianfab <ianfab@users.noreply.github.com>
Sat, 25 Aug 2018 17:42:43 +0000 (19:42 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 2 Sep 2018 13:28:31 +0000 (15:28 +0200)
Double mobility bonus for drop and antichess variants.

STC giveaway
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1946 W: 816 L: 705 D: 425
http://35.161.250.236:6543/tests/view/5b81957f6e23db0fbab0dce8

STC crazyhouse
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 3138 W: 1617 L: 1471 D: 50
http://35.161.250.236:6543/tests/view/5b8195546e23db0fbab0dce2

src/evaluate.cpp

index 971b44c..cc6d0ba 100644 (file)
@@ -950,7 +950,7 @@ namespace {
     for (PieceType pt = KNIGHT; pt < KING; ++pt)
         score += pieces<WHITE>(pt) - pieces<BLACK>(pt);
 
-    score += mobility[WHITE] - mobility[BLACK];
+    score += (mobility[WHITE] - mobility[BLACK]) * (1 + pos.captures_to_hand() + pos.must_capture());
 
     score +=  king<   WHITE>() - king<   BLACK>()
             + threats<WHITE>() - threats<BLACK>()