From 9bb7b5206efe9da39dfc60314bd8fdf95c643bc5 Mon Sep 17 00:00:00 2001 From: protonspring Date: Sat, 5 May 2018 09:23:14 -0600 Subject: [PATCH] include neighbours for backward pawns. bench 5122789 --- src/pawns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pawns.cpp b/src/pawns.cpp index cd9c4e68eac..a69e815e021 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -118,8 +118,8 @@ namespace { // A pawn is backward when it is behind all pawns of the same color // on the adjacent files and cannot be safely advanced. - backward = !lever && !(ourPawns & pawn_attack_span(Them, s+Up)) - && (stoppers & (leverPush | (s+Up))); + backward = !lever && !(ourPawns & pawn_attack_span(Them, s+Up)) && + neighbours && (stoppers & (leverPush | (s+Up))); // Passed pawns will be properly scored in evaluation because we need // full attack info to evaluate them. Include also not passed pawns