import { ArrayFun } from "@/utils/array";
export class RecycleRules extends ChessRules {
+
static get PawnSpecs() {
return Object.assign(
{},
return this.board[i][j].charAt(1);
}
+ getPPpath(m) {
+ if (m.vanish.length == 2 && m.appear.length == 2) {
+ // Castle: show castle symbol
+ return "Coregal/castle";
+ }
+ return super.getPPpath(m);
+ }
+
// Used by the interface:
getReservePpath(index, color) {
return color + V.RESERVE_PIECES[index];
move.appear[0].p != V.PAWN ? move.appear[0].p.toUpperCase() : "";
return piece + "@" + V.CoordsToSquare(move.end);
}
+
};