- // Previous rank
- p = rank_bb(s - pawn_push(Us));
-
- // Flag the pawn as passed, isolated, doubled,
- // unsupported or connected (but not the backward one).
- connected = ourPawns & adjacent_files_bb(f) & (rank_bb(s) | p);
- phalanx = connected & rank_bb(s);
- unsupported = !(ourPawns & adjacent_files_bb(f) & p);
- isolated = !(ourPawns & adjacent_files_bb(f));