From: Fabian Fichter Date: Fri, 3 Jul 2020 13:05:24 +0000 (+0200) Subject: Tweak drop mobility X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3f51a118da2ff26a9e67ffb21777407fcb447e18;p=fairystockfish.git Tweak drop mobility reversi Total: 100 W: 99 L: 1 D: 0 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 3b327b6..1b94859 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -453,6 +453,8 @@ namespace { if (pos.promoted_piece_type(pt) != NO_PIECE_TYPE && pos.drop_promoted()) score += make_score(std::max(PieceValue[MG][pos.promoted_piece_type(pt)] - PieceValue[MG][pt], VALUE_ZERO), std::max(PieceValue[EG][pos.promoted_piece_type(pt)] - PieceValue[EG][pt], VALUE_ZERO)) / 4 * pos.count_in_hand(Us, pt); + if (pos.enclosing_drop()) + mobility[Us] += make_score(500, 500) * popcount(b); } return score;