[ 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] 🕸📝Fergus Duniho wrote on Tue, Apr 7, 2020 03:59 PM UTC:I see from you commenting it out that you've identified this line as the problem that's causing premature checkmate: set Kpos space moved; It should be changed to set Kpos $dest; The space operator returns the piece on the coordinate given to it, but you want to set Kpos to a coordinate, and $moved is a piece, not a coordinate.
I see from you commenting it out that you've identified this line as the problem that's causing premature checkmate:
set Kpos space moved;
It should be changed to
set Kpos $dest;
The space operator returns the piece on the coordinate given to it, but you want to set Kpos to a coordinate, and $moved is a piece, not a coordinate.