{
static get HasFlags() { return false; }
- setOtherVariables(fen)
- {
- const parsedFen = V.ParseFen(fen);
- const epSq = parsedFen.enpassant != "-"
- ? V.SquareToCoords(parsedFen.enpassant)
- : undefined;
- this.epSquares = [ epSq ];
- this.scanKingsRooks(fen);
- }
-
getPotentialPawnMoves([x,y])
{
let moves = super.getPotentialPawnMoves([x,y]);
return moves;
}
- underCheck(move)
+ underCheck(color)
{
return false; //No notion of check
}
return [];
}
- // No variables update because no castling
+ // No variables update because no royal king + no castling
updateVariables(move) { }
unupdateVariables(move) { }
" w -"; //no en-passant
}
}
+
+const VariantRules = LoserRules;