]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Back to CLOP average values
[stockfish] / src / evaluate.cpp
index 183f166a8e3c8b1e37ffe91188c0858a8a6e4cd1..2cb9979d295a863900c13bca115404251e0cafd9 100644 (file)
@@ -150,6 +150,9 @@ namespace {
 
   #undef S
 
+  // CLOP now likes 85, 31 - try next
+  const Score BishopPinBonus = make_score(34, 17);
+
   // Bonus for having the side to move (modified by Joona Kiiski)
   const Score Tempo = make_score(24, 11);
 
@@ -584,7 +587,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
         else if (Piece == BISHOP && (PseudoAttacks[Piece][pos.king_square(Them)] & s)) {
              const Bitboard between = BetweenBB[s][pos.king_square(Them)] & pos.pieces();
              if (!more_than_one(between))
-                 score += make_score(15, 25);
+                 score += BishopPinBonus;
         }
 
         // Bishop and knight outposts squares
@@ -692,8 +695,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
                       & ~ei.attackedBy[Them][0];
 
     if (undefendedMinors)
-        score += more_than_one(undefendedMinors) ? UndefendedMinorPenalty * 2
-                                                 : UndefendedMinorPenalty;
+        score += UndefendedMinorPenalty;
 
     // Enemy pieces not defended by a pawn and under our attack
     weakEnemies =  pos.pieces(Them)