- mlist = (us == WHITE ? generate_pawn_moves<WHITE, Type>(pos, mlist, target, ci)
- : generate_pawn_moves<BLACK, Type>(pos, mlist, target, ci));
-
- mlist = generate_moves<KNIGHT, Checks>(pos, mlist, us, target, ci);
- mlist = generate_moves<BISHOP, Checks>(pos, mlist, us, target, ci);
- mlist = generate_moves<ROOK, Checks>(pos, mlist, us, target, ci);
- mlist = generate_moves<QUEEN, Checks>(pos, mlist, us, target, ci);
+ mlist = generate_pawn_moves<Us, Type>(pos, mlist, target, ci);
+ mlist = generate_moves<KNIGHT, Checks>(pos, mlist, Us, target, ci);
+ mlist = generate_moves<BISHOP, Checks>(pos, mlist, Us, target, ci);
+ mlist = generate_moves< ROOK, Checks>(pos, mlist, Us, target, ci);
+ mlist = generate_moves< QUEEN, Checks>(pos, mlist, Us, target, ci);