constexpr Score HinderPassedPawn = S( 8, 0);
constexpr Score KingProtector = S( 6, 6);
constexpr Score KnightOnQueen = S( 21, 11);
- constexpr Score LongDiagonalBishop = S( 22, 0);
+ constexpr Score LongDiagonalBishop = S( 46, 0);
constexpr Score MinorBehindPawn = S( 16, 0);
constexpr Score Overload = S( 13, 6);
constexpr Score PawnlessFlank = S( 19, 84);
* (1 + popcount(blocked & CenterFiles));
// Bonus for bishop on a long diagonal which can "see" both center squares
- if (more_than_one(Center & (attacks_bb<BISHOP>(s, pos.pieces(PAWN)) | s)))
+ if (more_than_one(attacks_bb<BISHOP>(s, pos.pieces(PAWN)) & Center))
score += LongDiagonalBishop;
}
{ S(-195,-109), S(-67,-89), S(-42,-50), S(-29,-13) }
},
{ // Bishop
- { S(-44,-58), S(-13,-31), S(-25,-37), S(-34,-19) },
- { S(-20,-34), S( 20, -9), S( 12,-14), S( 1, 4) },
- { S( -9,-23), S( 27, 0), S( 21, -3), S( 11, 16) },
- { S(-11,-26), S( 28, -3), S( 21, -5), S( 10, 16) },
- { S(-11,-26), S( 27, -4), S( 16, -7), S( 9, 14) },
- { S(-17,-24), S( 16, -2), S( 12, 0), S( 2, 13) },
- { S(-23,-34), S( 17,-10), S( 6,-12), S( -2, 6) },
- { S(-35,-55), S(-11,-32), S(-19,-36), S(-29,-17) }
+ { S(-64,-58), S(-13,-31), S(-25,-37), S(-34,-19) },
+ { S(-20,-34), S( 0, -9), S( 12,-14), S( 1, 4) },
+ { S( -9,-23), S( 27, 0), S( 1, -3), S( 11, 16) },
+ { S(-11,-26), S( 28, -3), S( 21, -5), S( 32, 16) },
+ { S(-11,-26), S( 27, -4), S( 16, -7), S( 31, 14) },
+ { S(-17,-24), S( 16, -2), S( -8, 0), S( 2, 13) },
+ { S(-23,-34), S( -3,-10), S( 6,-12), S( -2, 6) },
+ { S(-55,-55), S(-11,-32), S(-19,-36), S(-29,-17) }
},
{ // Rook
{ S(-25, 0), S(-16, 0), S(-16, 0), S(-9, 0) },