ajax333221 / isepic-chess

♞ JavaScript chess utility library.
MIT License
16 stars 3 forks source link

Empty move.enPassantBos property when loading a FEN with En passant squares #29

Closed ajax333221 closed 2 years ago

ajax333221 commented 2 years ago

The line:

https://github.com/ajax333221/isepic-chess/blob/b4183ecf37a97bcd614c524b74c655484e2ede7f/isepic-chess.js#L2439

should be: enPassantBos : that.enPassantBos,

This creates some minor inconsistencies when loading a FEN with an En passant square, as the move obj property will not have it. It is confirmed that this bug doesn't impact Ic.js or IcUi.js as the En passant is taken from the FEN when loading it each time and never from the move obj property.