+ getPotentialPawnMoves([x, y]) {
+ const piece = this.getPiece(x, y);
+ const promotions =
+ piece == V.PAWN
+ ? [V.ROOK, V.KNIGHT, V.BISHOP, V.QUEEN]
+ : [V.QUEEN]; //hidden queen revealed
+ return super.getPotentialPawnMoves([x, y], promotions);
+ }
+