29 || ! state.hasEffectByPiece(state.pieceOnBoard(move.
from()), p.
square()));
33 if (
self != move.
ptype())
35 if (state.countEffect(
alt(state.turn()), move.
to(), env.
op_pin) > 0)
39 const Piece p = state.pieceOf(pins.takeOneBit());
40 if (
match(state, move, env, p))
49 || ! state.hasEffectByPiece(state.pieceOnBoard(move.
from()), p.
square()))))
53 return attack ? index : index + 1;
57 if (state.countEffect(
alt(state.turn()), move.
to(), env.
op_pin) > 0)
61 const Piece p = state.pieceOf(pins.takeOneBit());
62 const int i =
index(state, move, env, attack, p);