From: ianfab Date: Sat, 25 Aug 2018 17:42:43 +0000 (+0200) Subject: Increase mobility bonus X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e53952775589681f777ff4c7f33e27b4b9f32941;p=fairystockfish.git Increase mobility bonus 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 971b44c..cc6d0ba 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -950,7 +950,7 @@ namespace { for (PieceType pt = KNIGHT; pt < KING; ++pt) score += pieces(pt) - pieces(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() - threats()