import { ChessRules, PiPo } from "@/base_rules";
export class KoopaRules extends ChessRules {
import { ChessRules, PiPo } from "@/base_rules";
export class KoopaRules extends ChessRules {
// Squares of white and black king:
this.kingPos = { w: [-1, -1], b: [-1, -1] };
const fenRows = V.ParseFen(fen).position.split("/");
// Squares of white and black king:
this.kingPos = { w: [-1, -1], b: [-1, -1] };
const fenRows = V.ParseFen(fen).position.split("/");
- ).concat(super.getCastleMoves(sq, true, ['r']))
+ ).concat(super.getCastleMoves(sq, null, true, ['r']))