// Find the available squares for our pieces inside the area defined by SpaceMask
Bitboard safe = SpaceMask
- & ~pos.pieces(Us, PAWN, SHOGI_PAWN)
- & ~attackedBy[Them][PAWN]
- & ~attackedBy[Them][SHOGI_PAWN];
+ & ~pos.pieces(Us, PAWN)
+ & ~attackedBy[Them][PAWN];
// Find all squares which are at most three squares behind some friendly pawn
- Bitboard behind = pos.pieces(Us, PAWN, SHOGI_PAWN);
+ Bitboard behind = pos.pieces(Us, PAWN);
behind |= shift<Down>(behind);
behind |= shift<Down+Down>(behind);