Now that NO_PIECE == 0 the common memset() will
do the work.
No functional change.
for (int i = 0; i < 8; i++)
for (int j = 0; j < 16; j++)
pieceList[0][i][j] = pieceList[1][i][j] = SQ_NONE;
-
- for (Square sq = SQ_A1; sq <= SQ_H8; sq++)
- board[sq] = NO_PIECE;
}
}
inline char file_to_char(File f) {
- return char(f - FILE_A + int('a'));
+ return char(f - FILE_A + 'a');
}
inline char rank_to_char(Rank r) {
- return char(r - RANK_1 + int('1'));
+ return char(r - RANK_1 + '1');
}
inline Square pawn_push(Color c) {