import { ArrayFun } from "@/utils/array";
export class RugbyRules extends ChessRules {
+
static get HasFlags() {
return false;
}
);
}
+ scanKings() {}
+
getPotentialMovesFrom(sq) {
// There are only pawns:
return this.getPotentialPawnMoves(sq);
preUndo() {}
postUndo() {}
+ getCheckSquares() {
+ return [];
+ }
+
getCurrentScore() {
// Turn has changed:
const color = V.GetOppCol(this.turn);
// Stalemate (will probably never happen)
return "1/2";
}
+
+ getNotation(move) {
+ return V.CoordsToSquare(move.start) + V.CoordsToSquare(move.end);
+ }
+
};