]> git.sesse.net Git - stockfish/commitdiff
Raise penalty for knight attacked by pawn
authorStéphane Nicolet <cassio@free.fr>
Sat, 28 Feb 2015 16:58:32 +0000 (00:58 +0800)
committerGary Linscott <glinscott@gmail.com>
Sat, 28 Feb 2015 16:58:32 +0000 (00:58 +0800)
Raise a bit the penalty for knight attacked by pawn.

STC:
LLR: 2.97 (-2.94,2.94) [-1.50,4.50]
Total: 27744 W: 5563 L: 5380 D: 16801

LTC:
LLR: 2.96 (-2.94,2.94) [0.00,4.00]
Total: 87571 W: 14747 L: 14314 D: 58510

Bench: 8285241

Resolves #270

src/evaluate.cpp

index 77096c9b30f62d581d52c944051865913154bef9..c880b7c7845f3c881ba2d7600a662c393e6a9436 100644 (file)
@@ -148,7 +148,7 @@ namespace {
   // ThreatenedByPawn[PieceType] contains a penalty according to which piece
   // type is attacked by an enemy pawn.
   const Score ThreatenedByPawn[] = {
-    S(0, 0), S(0, 0), S(87, 118), S(84, 122), S(114, 203), S(121, 217)
+    S(0, 0), S(0, 0), S(107, 138), S(84, 122), S(114, 203), S(121, 217)
   };
 
   // Assorted bonuses and penalties used by evaluation