- case VariantRules.PAWN:
- return this.getPotentialPawnMoves(x,y,c);
- case VariantRules.ROOK:
- return this.getPotentialRookMoves(x,y,c);
- case VariantRules.KNIGHT:
- return this.getPotentialKnightMoves(x,y,c);
- case VariantRules.BISHOP:
- return this.getPotentialBishopMoves(x,y,c);
- case VariantRules.QUEEN:
- return this.getPotentialQueenMoves(x,y,c);
- case VariantRules.KING:
- return this.getPotentialKingMoves(x,y,c);
+ case V.PAWN:
+ return this.getPotentialPawnMoves([x,y]);
+ case V.ROOK:
+ return this.getPotentialRookMoves([x,y]);
+ case V.KNIGHT:
+ return this.getPotentialKnightMoves([x,y]);
+ case V.BISHOP:
+ return this.getPotentialBishopMoves([x,y]);
+ case V.QUEEN:
+ return this.getPotentialQueenMoves([x,y]);
+ case V.KING:
+ return this.getPotentialKingMoves([x,y]);