I'm trying to figure out how to get the castling rules enforced properly. I really don't understand what I'm doing. Based on this preset https://www.chessvariants.com/play/pbm/play.php?game=Expanded+Chess&settings=default I managed to include the fischer file and make the proper castling moves display as legal, but when I try to actually castle it says You cannot capture your own pieces.
I think this has something to do with the post move sections but I'm totally lost trying to understand what needs to be changed.
I'm trying to figure out how to get the castling rules enforced properly. I really don't understand what I'm doing. Based on this preset https://www.chessvariants.com/play/pbm/play.php?game=Expanded+Chess&settings=default I managed to include the fischer file and make the proper castling moves display as legal, but when I try to actually castle it says You cannot capture your own pieces. I think this has something to do with the post move sections but I'm totally lost trying to understand what needs to be changed.