Tweak mobility bonus for fairy pieces
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 4 Feb 2019 21:20:42 +0000 (22:20 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 4 Feb 2019 21:20:42 +0000 (22:20 +0100)
ai-wok
LLR: 3.00 (-2.94,2.94) [-10.00,5.00]
Total: 550 W: 247 L: 193 D: 110

courier
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 1388 W: 349 L: 311 D: 728

minishogi
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 3490 W: 1761 L: 1718 D: 11

src/evaluate.cpp

index 9ed1a3d..cce030a 100644 (file)
@@ -120,7 +120,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(300, 300);
+  constexpr Score MaxMobility  = S(250, 250);
   constexpr Score DropMobility = S(10, 10);
 
   // Outpost[knight/bishop][supported by pawn] contains bonuses for minor
@@ -348,7 +348,7 @@ namespace {
         if (Pt <= QUEEN)
             mobility[Us] += MobilityBonus[Pt - 2][mob];
         else
-            mobility[Us] += MaxMobility * (mob - 1) / (10 + mob);
+            mobility[Us] += MaxMobility * (mob - 1) / (8 + mob);
 
         // Piece promotion bonus
         if (pos.promoted_piece_type(Pt) != NO_PIECE_TYPE)