Skip to content

Commit

Permalink
twikk.
Browse files Browse the repository at this point in the history
bench 4060118
  • Loading branch information
Vizvezdenec committed Feb 11, 2019
1 parent 76dbbc7 commit 518e1f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evaluate.cpp
Expand Up @@ -157,7 +157,7 @@ namespace {
constexpr Score RookOnPawn = S( 10, 32);
constexpr Score SliderOnQueen = S( 59, 18);
constexpr Score ThreatByKing = S( 24, 89);
constexpr Score ThreatByPawnPush = S( 45, 37);
constexpr Score ThreatByPawnPush = S( 48, 39);
constexpr Score ThreatByRank = S( 13, 0);
constexpr Score ThreatBySafePawn = S(173, 94);
constexpr Score TrappedRook = S( 47, 4);
Expand Down Expand Up @@ -476,7 +476,7 @@ namespace {
kingDanger += kingAttackersCount[Them] * kingAttackersWeight[Them]
+ 69 * kingAttacksCount[Them]
+ 185 * popcount(kingRing[Us] & weak)
- 100 * bool(attackedBy[Us][KNIGHT] & attackedBy[Us][KING])
- 100 * bool((attackedBy[Us][KNIGHT] & attackedBy[Us][KING]) && !(attackedBy[Us][KNIGHT] & ksq))
+ 150 * popcount(pos.blockers_for_king(Us) | unsafeChecks)
- 873 * !pos.count<QUEEN>(Them)
- 6 * mg_value(score) / 8
Expand Down Expand Up @@ -578,7 +578,7 @@ namespace {
b &= ~attackedBy[Them][PAWN] & safe;

// Bonus for safe pawn threats on the next move
b = pawn_attacks_bb<Them>(pos.pieces(Them)) & b;
b = pawn_attacks_bb<Us>(b) & pos.pieces(Them);
score += ThreatByPawnPush * popcount(b);

// Our safe or protected pawns
Expand Down

0 comments on commit 518e1f4

Please sign in to comment.