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.
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!