You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following fen has two white kings and no black king
8/2K5/8/8/2K1NB2/8/8/8 w - - 96 46
So I expect the framework to detect it as an illegal position and set the board fen to empty (8/8/8/8/8/8/8/8 w - - 0 1), like for other illegal positions. But it is not the case.
The position has been accepted and board set to this illegal position !
Indeed, when I check the validate_fen function, it seems that there is no check for the pieces count.
The text was updated successfully, but these errors were encountered:
Thanks for the report. This issue has been fixed in the latest release (1.0.0-beta.1). The constructor and the .load() method now throw an exception with the message Invalid FEN: too many white kings
The following fen has two white kings and no black king
So I expect the framework to detect it as an illegal position and set the board fen to empty (
8/8/8/8/8/8/8/8 w - - 0 1
), like for other illegal positions. But it is not the case.The position has been accepted and board set to this illegal position !
Indeed, when I check the validate_fen function, it seems that there is no check for the pieces count.
The text was updated successfully, but these errors were encountered: