Skip to content

Commit f1088c9

Browse files
miguel-lsnicolet
authored andcommitted
Remove Condition For Passed Pawns
Currently, we do not consider pawns passed if there is another pawn of the same color in front of them. It appears that this condition is not necessary. The idea is that the doubled pawns are likely to be weak and one of them will be likely captured anyway. On the other hand, if we do somehow manage to promote a pawn, then the pawn behind it becomes passed as well. In any case, the end result is we end up with an extra potentially passed pawn. The current evaluation for passed pawns already handles this case by also scaling down this effect. STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 28291 W: 6287 L: 6178 D: 15826 http://tests.stockfishchess.org/tests/view/5b6c4b960ebc5902bdb9f256 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 30717 W: 5256 L: 5151 D: 20310 http://tests.stockfishchess.org/tests/view/5b6c82980ebc5902bdb9f863 Bench: 4938285
1 parent 198418e commit f1088c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/pawns.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ namespace {
118118
// which could become passed after one or two pawn pushes when are
119119
// not attacked more times than defended.
120120
if ( !(stoppers ^ lever ^ leverPush)
121-
&& !(ourPawns & forward_file_bb(Us, s))
122121
&& popcount(supported) >= popcount(lever) - 1
123122
&& popcount(phalanx) >= popcount(leverPush))
124123
e->passedPawns[Us] |= s;

0 commit comments

Comments
 (0)