Remove an assert in evaluate_passed_pawns()
authorMarco Costalba <mcostalba@gmail.com>
Thu, 20 May 2010 16:48:19 +0000 (17:48 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 20 May 2010 16:48:55 +0000 (17:48 +0100)
We already tested few lines before with:

assert(pos.pawn_is_passed(Us, s));

Spotted by Marek Kwiatkowski.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/evaluate.cpp

index 66a5942aedf19ae9042a0b4ec5fde6eef0cf71f1..e05383ffcbdabe3ee600ddbb6ae24a905b5da202 100644 (file)
@@ -820,9 +820,6 @@ namespace {
                 squaresToQueen = squares_in_front_of(Us, s);
                 defendedSquares = squaresToQueen & ei.attacked_by(Us);
 
-                // There are no enemy pawns in the pawn's path
-                assert(!(squaresToQueen & pos.pieces(PAWN, Them)));
-
                 // If there is an enemy rook or queen attacking the pawn from behind,
                 // add all X-ray attacks by the rook or queen. Otherwise consider only
                 // the squares in the pawn's path attacked or occupied by the enemy.