From 619d66b7ab1b8491363f9fd5ce98372e51e55cde Mon Sep 17 00:00:00 2001 From: Joseph Hellis Date: Thu, 17 Apr 2014 08:43:40 +0200 Subject: [PATCH] Remove supporting pawns Tested in no-regression mode Passed both STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 44957 W: 7984 L: 7903 D: 29070 and LTC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 12396 W: 1916 L: 1783 D: 8697 Bench: 7907885 --- src/evaluate.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 1d52d30c..6ec42e24 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -583,7 +583,7 @@ namespace { const Color Them = (Us == WHITE ? BLACK : WHITE); - Bitboard b, squaresToQueen, defendedSquares, unsafeSquares, supportingPawns; + Bitboard b, squaresToQueen, defendedSquares, unsafeSquares; Score score = SCORE_ZERO; b = ei.pi->passed_pawns(Us); @@ -651,15 +651,6 @@ namespace { } } // rr != 0 - // Increase the bonus if the passed pawn is supported by a friendly pawn - // on the same rank and a bit smaller if it's on the previous rank. - supportingPawns = pos.pieces(Us, PAWN) & adjacent_files_bb(file_of(s)); - if (supportingPawns & rank_bb(s)) - ebonus += Value(r * 20); - - else if (supportingPawns & rank_bb(s - pawn_push(Us))) - ebonus += Value(r * 12); - // Rook pawns are a special case: They are sometimes worse, and // sometimes better than other passed pawns. It is difficult to find // good rules for determining whether they are good or bad. For now, -- 2.39.2