From: Fabian Fichter Date: Sun, 27 Dec 2020 09:53:34 +0000 (+0100) Subject: Tweak shogi passed pawn eval X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8e1906d4c8524ad2457a85502070b89ec4c4b81d;p=fairystockfish.git Tweak shogi passed pawn eval shogi STC LLR: -2.97 (-2.94,2.94) [0.00,10.00] Total: 11164 W: 5584 L: 5526 D: 54 http://www.variantfishtest.org:6543/tests/view/5fe0e1e96e23db221d9e9647 shogi LTC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 17209 W: 8731 L: 8381 D: 97 http://www.variantfishtest.org:6543/tests/view/5fe454c96e23db221d9e96a2 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 6880f69..67aafa0 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1050,9 +1050,9 @@ namespace { continue; Square blockSq = s + Up; - int d = std::max(pos.promotion_rank() - relative_rank(Us, s, pos.max_rank()), 1); + int d = 2 * std::max(pos.promotion_rank() - relative_rank(Us, s, pos.max_rank()), 1); d += !!(attackedBy[Them][ALL_PIECES] & ~attackedBy2[Us] & blockSq); - score += make_score(PieceValue[MG][pt], PieceValue[EG][pt]) / (4 * d * d); + score += make_score(PieceValue[MG][pt], PieceValue[EG][pt]) / (d * d); } }