Skip to content

Commit

Permalink
22 * pt.
Browse files Browse the repository at this point in the history
  • Loading branch information
protonspring committed Jul 9, 2019
1 parent ca51d1e commit 45290b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/evaluate.cpp
Expand Up @@ -77,9 +77,6 @@ namespace {
constexpr Value LazyThreshold = Value(1400);
constexpr Value SpaceThreshold = Value(12222);

// KingAttackWeights[PieceType] contains king attack weights by piece type
constexpr int KingAttackWeights[PIECE_TYPE_NB] = { 0, 0, 77, 55, 44, 10 };

// Penalties for enemy's safe checks
constexpr int QueenSafeCheck = 780;
constexpr int RookSafeCheck = 1080;
Expand Down Expand Up @@ -292,7 +289,7 @@ namespace {
if (b & kingRing[Them])
{
kingAttackersCount[Us]++;
kingAttackersWeight[Us] += KingAttackWeights[Pt];
kingAttackersWeight[Us] += 21 * (KING - Pt);
kingAttacksCount[Us] += popcount(b & attackedBy[Them][KING]);
}

Expand Down

0 comments on commit 45290b8

Please sign in to comment.