- // No castling, hence no flags; but flags defined for compatibility
- this.castleFlags = { "w":[false,false], "b":[false,false] };
+ const parsedFen = V.ParseFen(fen);
+ const epSq = parsedFen.enpassant != "-"
+ ? V.SquareToCoords(parsedFen.enpassant)
+ : undefined;
+ this.epSquares = [ epSq ];
+ this.scanKingsRooks(fen);