Skip to content
Permalink
Browse files

tweack.

bench 3214520
  • Loading branch information...
Vizvezdenec committed Mar 15, 2019
1 parent 4391943 commit 21a524e51666aeefc83b25509220768a7a5890d3
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/evaluate.cpp
@@ -374,6 +374,9 @@ namespace {
Bitboard queenPinners;
if (pos.slider_blockers(pos.pieces(Them, ROOK, BISHOP), s, queenPinners))
score -= WeakQueen;

if (mob < 9 && (pos.count<PAWN>(Them) - pos.count<PAWN>(Us) > 2))
score -= make_score(6, 12);
}
}
if (T)
@@ -591,9 +594,7 @@ namespace {

score += SliderOnQueen * popcount(b & safe & attackedBy2[Us]);
}

int strongPawns = popcount(pos.pieces(Them, PAWN) & stronglyProtected);
score -= make_score(2, 5) * (strongPawns * 2 - pos.count<PAWN>(Them));

if (T)
Trace::add(THREAT, Us, score);

0 comments on commit 21a524e

Please sign in to comment.
You can’t perform that action at this time.