- mlist = (us == WHITE ? generate_pawn_moves<WHITE, QUIET_CHECKS>(pos, mlist, ci.dcCandidates, ci.ksq)
- : generate_pawn_moves<BLACK, QUIET_CHECKS>(pos, mlist, ci.dcCandidates, ci.ksq));
-
- mlist = generate_moves<KNIGHT, true>(pos, mlist, us, empty, &ci);
- mlist = generate_moves<BISHOP, true>(pos, mlist, us, empty, &ci);
- mlist = generate_moves<ROOK, true>(pos, mlist, us, empty, &ci);
- mlist = generate_moves<QUEEN, true>(pos, mlist, us, empty, &ci);
-
- if (pos.can_castle(us))
- {
- mlist = generate_castle<KING_SIDE, true>(pos, mlist, us);
- mlist = generate_castle<QUEEN_SIDE, true>(pos, mlist, us);