Tweak piece promotion bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 3 Nov 2018 18:42:14 +0000 (19:42 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 3 Nov 2018 18:42:14 +0000 (19:42 +0100)
shogi
ELO: 4.34 +-33.0 (95%) LOS: 60.2%
Total: 400 W: 190 L: 185 D: 25

euroshogi
ELO: 36.62 +-33.8 (95%) LOS: 98.4%
Total: 400 W: 215 L: 173 D: 12

minishogi
ELO: 15.65 +-32.7 (95%) LOS: 82.6%
Total: 400 W: 193 L: 175 D: 32

src/evaluate.cpp

index 2a598b6..38abcfa 100644 (file)
@@ -346,7 +346,7 @@ namespace {
         {
             if (promotion_zone_bb(Us, pos.promotion_rank(), pos.max_rank()) & (b | s))
                 score += make_score(PieceValue[MG][pos.promoted_piece_type(Pt)] - PieceValue[MG][Pt],
-                                    PieceValue[EG][pos.promoted_piece_type(Pt)] - PieceValue[EG][Pt]) / 5;
+                                    PieceValue[EG][pos.promoted_piece_type(Pt)] - PieceValue[EG][Pt]) / 10;
         }
 
         // Penalty if the piece is far from the king