franciscoBSalgueiro / en-croissant

The Ultimate Chess Toolkit
https://encroissant.org
GNU General Public License v3.0
637 stars 78 forks source link

Invalid castling rights #346

Open at672 opened 2 months ago

at672 commented 2 months ago

Describe the bug

Every time I move the pieces while the engine is running, I get invalid castling rights. I can try manually deselecting the checkboxes in the bottom right but it doesn't fix the issue. Before the latest version it was very easy to use and put in whether or not you could castle. Now you can't. It's extremely unintuitive and I cannot get it to work when trying to manually set up positions for analysis. I have no idea how to make it work and I think this needs to be fixed for better understandability and usability by the end-user.

Reproduction

  1. Go to analysis tab.
  2. Start the engine (whichever you prefer, it doesn't matter).
  3. Click on the edit button
  4. Click and drag the king to one of the rooks to manually castle pieces
  5. the error appears.

Also, if you empty the board and then set up the pieces directly, the error still appears even though I never actually castled.

Platform and versions

Windows 11. Latest version of en croissant after downloading the update

Stack trace

Error: Invalid castling rights.
morphogeneticengineering commented 1 week ago

Hi! I get this error with Chess960 games, various puzzles, other times when I am editing a board into a custom position or from FEN and it seems to not be engine related but croissant related.