Check out Symmetric Chess, our featured variant for March, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

The Fairychess Include File Tutorial. How to use the fairychess include file to program games for Game Courier.[All Comments] [Add Comment or Rating]
Greg Strong wrote on Mon, Mar 23, 2020 11:36 PM UTC:

I need to update my Opulent Chess presets for the new starting array and was thinking I should change to the new fairychess include file at the same time.  The issue is the White_Pawn and Black_Pawn subroutines don't support promote-by-replacement.

So I'm wondering what would be the best way to go about this.  I could, of course, just make new subroutines in my preset and set the consts P and p to the new routines, but this is not generally reusable.  This rule is also used in Grand Chess, Eurasian Chess, and no doubt others...

Should we add alternate subroutines to the fairychess include file (maybe White_Pawn_Rep and Black_Pawn_Rep, for "replacement")?  Or make an alternate fairychess include file?  Or perhaps the existing subs can be upgraded to support this, although I wouldn't want to change the existing routines myself.  Any thoughts Fergus?