fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
626 stars 196 forks source link

castling rules ignored in capablanca960 #790

Closed Curious2021 closed 7 months ago

Curious2021 commented 7 months ago

Castling rules are not respected in Capablanca960. i tried to castle my king in a valid position in a capablanca960 position and it wasn’t allowed. Why not? Okay so there was a bishop in the corner…but there was nothing between the king and the rook therefore it should have been allowed. So why wasn’t this allowed? After that game I checked the rules for Capablanca960 and it explicitly says it would follow the general rules for castling. Okay, i know the castling rules so this position clearly should have been allowed.

Curious2021 commented 7 months ago

here’s the link to the game where i wasn’t allowed to castle. https://www.pychess.org/hFFmFD6h

ianfab commented 7 months ago

On the analysis board of the linked game I can castle anywhere from move 3 to 7, so I assume it is a non-issue, at least for Fairy-SF. Please report such issues first on the project where the issue occurs and only if you are sure that it is a Fairy-SF issue or a dev confirms report it here.

Edit: Castling in 960 is done by "king captures rook", just in case that might have been the source of confusion.