Check out Grant Acedrex, our featured variant for April, 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]
Aurelian Florea wrote on Thu, Apr 2, 2020 04:48 PM UTC:

Fergus,

It seems I need your guidance again.

I had made an working King function for apothecary chess:

def King
or and and checkaleap #0 #1 -2 -1 var K1stmove isupper space #1
or and and checkaleap #0 #1 -2 1 var k1stmove islower space #1
or and and checkaleap #0 #1 -3 1 var k1stmove islower space #1
or and and checkaleap #0 #1 -3 -1 var K1stmove isupper space #1
or and and checkaleap #0 #1 2 -1 var K1stmove isupper space #1
or and and checkaleap #0 #1 2 1 var k1stmove islower space #1
or and and checkaleap #0 #1 3 1 var k1stmove islower space #1
or and and checkaleap #0 #1 3 -1 var K1stmove isupper space #1
or checkleap #0 #1 1 0
or checkleap #0 #1 1 1;
def King-Range merge merge leaps #0 1 0 leaps #0 1 1 merge leaps #0 1 2 leaps #0 1 3;

But this does not display the initial powers of the king, only the regular moves, so I still have work to do. Also it is not optimized, for know it is good that it works. You had suggested a while ago:

def Apothecary_King blah blah blah;

def Apothecary_King-Range blah blah blah;

alias King Apothecary_King;

set k King;

set K King;

This does not work as it gives an "King may not move there "error. That is probably because I did not insert alias in every needed place, but I'm not sure.

Thanks for your time!