- ChessRules.ParseFen(fen),
- { whiteMove: fenParts[5] }
+ { whiteMove: fenParts[5] },
+ ChessRules.ParseFen(fen)
const epArray = parsedFen.enpassant.split(",");
this.epSquares = [];
epArray.forEach(epsq => this.epSquares.push(this.getEpSquare(epsq)));
const epArray = parsedFen.enpassant.split(",");
this.epSquares = [];
epArray.forEach(epsq => this.epSquares.push(this.getEpSquare(epsq)));
// Collision:
if (m1.vanish.length == 1 && m2.vanish.length == 1) {
// Easy case: both disappear except if one is a king
// Collision:
if (m1.vanish.length == 1 && m2.vanish.length == 1) {
// Easy case: both disappear except if one is a king