No functionl change
Closes #1039
};
// PawnsSet[count] contains a bonus/malus indexed by number of pawns
};
// PawnsSet[count] contains a bonus/malus indexed by number of pawns
- const int PawnsSet[9] = {
+ const int PawnsSet[FILE_NB + 1] = {
24, -32, 107, -51, 117, -9, -126, -21, 31
};
24, -32, 107, -51, 117, -9, -126, -21, 31
};
for (Piece pc : Pieces)
{
if (pieceCount[pc] != popcount(pieces(color_of(pc), type_of(pc))))
for (Piece pc : Pieces)
{
if (pieceCount[pc] != popcount(pieces(color_of(pc), type_of(pc))))
if (board[pieceList[pc][i]] != pc || index[pieceList[pc][i]] != i)
return false;
}
if (board[pieceList[pc][i]] != pc || index[pieceList[pc][i]] != i)
return false;
}
+ if (pieceCount[PAWN] > FILE_NB)
+ return false;
+ }
if (step == Castling)
for (Color c = WHITE; c <= BLACK; ++c)
if (step == Castling)
for (Color c = WHITE; c <= BLACK; ++c)