Simplify horde breakthrough bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 22 Mar 2021 19:07:04 +0000 (20:07 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 22 Mar 2021 19:07:04 +0000 (20:07 +0100)
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

src/evaluate.cpp

index 93f2b84..7fc5601 100644 (file)
@@ -1233,7 +1233,7 @@ namespace {
                                         80 - 15 * (edge_distance(f, pos.max_file()) % 2)) * m / (1 + l * r);
                 }
             }
-            else if (pos.count<PAWN>(Them) == pos.count<ALL_PIECES>(Them) && pos.pieces(Us, ROOK, QUEEN))
+            else if (pos.count<PAWN>(Them) == pos.count<ALL_PIECES>(Them))
             {
                 // Add a bonus according to how close we are to breaking through the pawn wall
                 int dist = 8;