From: Fabian Fichter Date: Mon, 22 Mar 2021 19:07:04 +0000 (+0100) Subject: Simplify horde breakthrough bonus X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f60ff4e05da985eb21a4866fcd008529aea404c4;p=fairystockfish.git Simplify horde breakthrough bonus horde STC LLR: 2.96 (-2.94,2.94) [-10.00,5.00] Total: 9409 W: 4643 L: 4643 D: 123 http://www.variantfishtest.org:6543/tests/view/6057234c6e23db669974eb19 horde LTC LLR: 2.98 (-2.94,2.94) [-10.00,5.00] Total: 3083 W: 1546 L: 1500 D: 37 http://www.variantfishtest.org:6543/tests/view/6058449d6e23db669974eb27 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 93f2b84..7fc5601 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1233,7 +1233,7 @@ namespace { 80 - 15 * (edge_distance(f, pos.max_file()) % 2)) * m / (1 + l * r); } } - else if (pos.count(Them) == pos.count(Them) && pos.pieces(Us, ROOK, QUEEN)) + else if (pos.count(Them) == pos.count(Them)) { // Add a bonus according to how close we are to breaking through the pawn wall int dist = 8;