mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Assorted code style issues
I have removed the check for pieceCount[PAWN] > FILE_NB because totally useless. No functional change.
This commit is contained in:
@@ -1192,7 +1192,6 @@ bool Position::pos_is_ok(int* failedStep) const {
|
||||
}
|
||||
|
||||
if (step == Lists)
|
||||
{
|
||||
for (Piece pc : Pieces)
|
||||
{
|
||||
if (pieceCount[pc] != popcount(pieces(color_of(pc), type_of(pc))))
|
||||
@@ -1202,9 +1201,6 @@ bool Position::pos_is_ok(int* failedStep) const {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user