]> git.sesse.net Git - stockfish/commitdiff
Remove penalty for knight when few enemy pawns
authorArjun Temurnikar <arjuntemurnikano@gmail.com>
Sat, 19 Apr 2014 01:54:23 +0000 (18:54 -0700)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 24 Apr 2014 06:47:13 +0000 (08:47 +0200)
Tested in standard mode at STC and no-regression
mode at LTC:

STC
LLR: 2.97 (-2.94,2.94) [-1.50,4.50]
Total: 19503 W: 3502 L: 3349 D: 12652

LTC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 67474 W: 9974 L: 9921 D: 47579

bench: 8331217

src/evaluate.cpp

index 8eb0364844a363e5fb33e5a7e55a4d8e26dd739c..f7a59de69319c9bff7192b739e544e2ba5e76b65 100644 (file)
@@ -166,7 +166,6 @@ namespace {
   const Score RookOpenFile     = make_score(43, 21);
   const Score RookSemiopenFile = make_score(19, 10);
   const Score BishopPawns      = make_score( 8, 12);
-  const Score KnightPawns      = make_score( 8,  4);
   const Score MinorBehindPawn  = make_score(16,  0);
   const Score UndefendedMinor  = make_score(25, 10);
   const Score TrappedRook      = make_score(90,  0);
@@ -349,10 +348,6 @@ namespace {
             if (Pt == BISHOP)
                 score -= BishopPawns * ei.pi->pawns_on_same_color_squares(Us, s);
 
-            // Penalty for knight when there are few enemy pawns
-            if (Pt == KNIGHT)
-                score -= KnightPawns * std::max(5 - pos.count<PAWN>(Them), 0);
-
             // Bishop and knight outposts squares
             if (!(pos.pieces(Them, PAWN) & pawn_attack_span(Us, s)))
                 score += evaluate_outposts<Pt, Us>(pos, ei, s);