}
-/// squares_of_color() returns a bitboard representing all the squares of the
-/// same color of the given one.
-
-inline Bitboard squares_of_color(Square s) {
- return DarkSquares & s ? DarkSquares : ~DarkSquares;
-}
-
-
/// aligned() returns true if the squares s1, s2 and s3 are aligned either on a
/// straight or on a diagonal line.
S( 94, 99), S( 96,100), S(99,111), S(99,112) }
};
- // Outpost[knight/bishop][supported by pawn]
+ // Outpost[knight/bishop][supported by pawn] contains bonuses for knights and bishops
+ // outposts, bigger if outpost piece is supported by a pawn.
const Score Outpost[][2] = {
{ S(28, 7), S(42,11) }, // Knights
{ S(12, 3), S(18, 5) } // Bishops
// calls in case we get a cutoff.
for (auto& m : *this)
m.value = PieceValue[MG][pos.piece_on(to_sq(m))]
- - 200 * relative_rank(pos.side_to_move(), to_sq(m));
+ - Value(200 * relative_rank(pos.side_to_move(), to_sq(m)));
}
template<>
// Futility pruning: parent node
if (predictedDepth < 7 * ONE_PLY)
{
- futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256;
+ futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256;
if (futilityValue <= alpha)
{