From: Fabian Fichter Date: Fri, 13 Mar 2020 14:06:15 +0000 (+0100) Subject: Evaluate king proximity for bughouse X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1c72ac0d22676437f37ed082cb659f2f38928c00;p=fairystockfish.git Evaluate king proximity for bughouse bughouse Total: 500 W: 280 L: 216 D: 4 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index fea27a4..b871253 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -345,7 +345,7 @@ namespace { PieceValue[EG][Pt] - PieceValue[EG][pos.unpromoted_piece_on(s)]) / 8; // Penalty if the piece is far from the kings in drop variants - if (pos.captures_to_hand() && pos.count(Them) && pos.count(Us)) + if ((pos.captures_to_hand() || pos.two_boards()) && pos.count(Them) && pos.count(Us)) score -= KingProximity * distance(s, pos.square(Us)) * distance(s, pos.square(Them)); if (Pt == BISHOP || Pt == KNIGHT)