From 471e745a91074c9cb5502bc0c026cdbd3e91ee9a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 20 May 2010 17:48:19 +0100 Subject: [PATCH] Remove an assert in evaluate_passed_pawns() 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 --- src/evaluate.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 66a5942a..e05383ff 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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. -- 2.39.2