Skip to content

Commit

Permalink
tweak.
Browse files Browse the repository at this point in the history
bench 4628589
  • Loading branch information
Vizvezdenec committed Oct 10, 2018
1 parent 8141bdd commit bd29334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/evaluate.cpp
Expand Up @@ -94,7 +94,8 @@ namespace {
// Penalties for enemy's safe checks
constexpr int QueenSafeCheck = 780;
constexpr int RookSafeCheck = 880;
constexpr int BishopSafeCheck = 435;
constexpr int BishopSafeCheck = -100;
constexpr int BishopSafeCheck2 = 535;
constexpr int KnightSafeCheck = 790;

#define S(mg, eg) make_score(mg, eg)
Expand Down Expand Up @@ -458,7 +459,7 @@ namespace {

// Enemy bishops checks
if (b2 & safe)
kingDanger += BishopSafeCheck;
kingDanger += BishopSafeCheck + BishopSafeCheck2 * popcount (b2 & safe);
else
unsafeChecks |= b2;

Expand Down

0 comments on commit bd29334

Please sign in to comment.