[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
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