I just tried substituting the fairychess include file for the chess2 include file without making any other changes to Brawl Chess enforced preset, and I immediately had a fatal error.
That's not how to do it. It introduces a new programming paradigm that earlier include files do not use. It mainly involves copying some code, naming your pieces, and setting some parameters. Since the fairychess include file already includes definitions of many pieces, it cuts down on how many pieces you have to program yourself.
The tutorial for the fairychess include file looks very involved and I worry I might have to change/add a lot of code (never mind that I cannot seem to figure out yet how fairychess file might be able to handle K-3-step-castling in either direction as in Capablanca Chess, if it can), a process I don't understand much for Game Courier, being very rusty at programming.
How castling is defined has not changed. It involves storing the spaces each King may move to when castling into its own variable, either wcastle or bcastle. I found I had already begun work on a preset for Capablanca's Chess using the fairychess include file, and I just completed it and made it the new one. Here's a link:
That's not how to do it. It introduces a new programming paradigm that earlier include files do not use. It mainly involves copying some code, naming your pieces, and setting some parameters. Since the fairychess include file already includes definitions of many pieces, it cuts down on how many pieces you have to program yourself.
How castling is defined has not changed. It involves storing the spaces each King may move to when castling into its own variable, either wcastle or bcastle. I found I had already begun work on a preset for Capablanca's Chess using the fairychess include file, and I just completed it and made it the new one. Here's a link:
https://www.chessvariants.com/play/pbm/play.php?game%3DCapablanca+Chess%26settings%3Dfairychess