From: Fabian Fichter Date: Sat, 3 Nov 2018 18:42:14 +0000 (+0100) Subject: Tweak piece promotion bonus X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=41789ff0b275e86b2f69b78f84a63b2b645f3e34;p=fairystockfish.git Tweak piece promotion bonus 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 2a598b6..38abcfa 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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