#include <cstring>
#include "pawns.h"
+#include "position.h"
////
File f = square_file(s);
Rank r = square_rank(s);
- assert(pos.piece_on(s) == pawn_of_color(us));
+ assert(pos.piece_on(s) == piece_of_color_and_type(us, PAWN));
// The file containing the pawn is not half open
pi->halfOpenFiles[us] &= ~(1 << f);