mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Fix compile on icc
Error is: a value of type "int" cannot be assigned to an entity of type "Value" Also retire the now unused squares_of_color() function. No functional change.
This commit is contained in:
parent
e8cc5c9968
commit
3f1bc9e013
4 changed files with 4 additions and 11 deletions
|
@ -200,14 +200,6 @@ inline Bitboard passed_pawn_mask(Color c, Square s) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// 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
|
/// aligned() returns true if the squares s1, s2 and s3 are aligned either on a
|
||||||
/// straight or on a diagonal line.
|
/// straight or on a diagonal line.
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,8 @@ namespace {
|
||||||
S( 94, 99), S( 96,100), S(99,111), S(99,112) }
|
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] = {
|
const Score Outpost[][2] = {
|
||||||
{ S(28, 7), S(42,11) }, // Knights
|
{ S(28, 7), S(42,11) }, // Knights
|
||||||
{ S(12, 3), S(18, 5) } // Bishops
|
{ S(12, 3), S(18, 5) } // Bishops
|
||||||
|
|
|
@ -149,7 +149,7 @@ void MovePicker::score<CAPTURES>() {
|
||||||
// calls in case we get a cutoff.
|
// calls in case we get a cutoff.
|
||||||
for (auto& m : *this)
|
for (auto& m : *this)
|
||||||
m.value = PieceValue[MG][pos.piece_on(to_sq(m))]
|
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<>
|
template<>
|
||||||
|
|
|
@ -902,7 +902,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
// Futility pruning: parent node
|
// Futility pruning: parent node
|
||||||
if (predictedDepth < 7 * ONE_PLY)
|
if (predictedDepth < 7 * ONE_PLY)
|
||||||
{
|
{
|
||||||
futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256;
|
futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256;
|
||||||
|
|
||||||
if (futilityValue <= alpha)
|
if (futilityValue <= alpha)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue