🕸📝Fergus Duniho wrote on Wed, Oct 24, 2018 01:00 AM UTC:
This is now fixed. The legal move it had found was the General taking the Chariot. I don't know why it allowed this. The code originally looked like this:
def G checkride #0 #1 1 0 and == var g #1 or checkleap #0 #1 0 1 and flag #1;
This code compared the value of g, which is where the other General was, to the destination.
I changed it to this, which compares the piece on the destination space to the label for the other General.
def G checkride #0 #1 1 0 and == space #1 g or checkleap #0 #1 0 1 and flag #1;
This is now fixed. The legal move it had found was the General taking the Chariot. I don't know why it allowed this. The code originally looked like this:
def G checkride #0 #1 1 0 and == var g #1 or checkleap #0 #1 0 1 and flag #1;
This code compared the value of g, which is where the other General was, to the destination.
I changed it to this, which compares the piece on the destination space to the label for the other General.
def G checkride #0 #1 1 0 and == space #1 g or checkleap #0 #1 0 1 and flag #1;