- Array.prototype.push.apply(moves, this.findCaptures_aux(sq, VariantRules.PAWN));
- Array.prototype.push.apply(moves, this.findCaptures_aux(sq, VariantRules.ROOK));
- Array.prototype.push.apply(moves, this.findCaptures_aux(sq, VariantRules.KNIGHT));
- Array.prototype.push.apply(moves, this.findCaptures_aux(sq, VariantRules.BISHOP));
- Array.prototype.push.apply(moves, this.findCaptures_aux(sq, VariantRules.QUEEN));
+ Array.prototype.push.apply(moves, this.findCaptures_aux(sq, V.PAWN));
+ Array.prototype.push.apply(moves, this.findCaptures_aux(sq, V.ROOK));
+ Array.prototype.push.apply(moves, this.findCaptures_aux(sq, V.KNIGHT));
+ Array.prototype.push.apply(moves, this.findCaptures_aux(sq, V.BISHOP));
+ Array.prototype.push.apply(moves, this.findCaptures_aux(sq, V.QUEEN));