Decrease mobility bonus for fairy pieces
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 2 Jul 2020 19:22:25 +0000 (21:22 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 2 Jul 2020 19:24:51 +0000 (21:24 +0200)
seirawan STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1991 W: 763 L: 657 D: 571
http://www.variantfishtest.org:6543/tests/view/5efa2fb26e23db104fb88c8b

seirawan LTC
LLR: 3.11 (-2.94,2.94) [0.00,10.00]
Total: 1552 W: 559 L: 459 D: 534
http://www.variantfishtest.org:6543/tests/view/5efb8cb86e23db104fb88ca7

shatranj STC
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 1656 W: 200 L: 134 D: 1322
http://www.variantfishtest.org:6543/tests/view/5efb1d676e23db104fb88c92

shatranj LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1482 W: 165 L: 102 D: 1215
http://www.variantfishtest.org:6543/tests/view/5efb8cd16e23db104fb88ca9

makruk STC
LLR: 3.00 (-2.94,2.94) [-10.00,5.00]
Total: 6773 W: 519 L: 495 D: 5759
http://www.variantfishtest.org:6543/tests/view/5efb489a6e23db104fb88c9b

src/evaluate.cpp

index 319d68e..3b327b6 100644 (file)
@@ -111,7 +111,7 @@ namespace {
       S( 79,140), S( 88,143), S( 88,148), S( 99,166), S(102,170), S(102,175),
       S(106,184), S(109,191), S(113,206), S(116,212) }
   };
-  constexpr Score MaxMobility  = S(250, 250);
+  constexpr Score MaxMobility  = S(150, 200);
   constexpr Score DropMobility = S(10, 10);
 
   // RookOnFile[semiopen/open] contains bonuses for each rook when there is
@@ -329,7 +329,7 @@ namespace {
         if (Pt <= QUEEN)
             mobility[Us] += MobilityBonus[Pt - 2][mob];
         else
-            mobility[Us] += MaxMobility * (mob - 1) / (8 + mob);
+            mobility[Us] += MaxMobility * (mob - 2) / (8 + mob);
 
         // Piece promotion bonus
         if (pos.promoted_piece_type(Pt) != NO_PIECE_TYPE)