I had tried the following in the postmove section 1 but with little succes:
if flag f2 and == moved K:
move $dest $origin; // Temporarily undo King move
if sub checked $origin:
die A King may not castle out of check.;
endif;
move $origin $dest;
endif;
I had tried the following in the postmove section 1 but with little succes:
if flag f2 and == moved K:
move $dest $origin; // Temporarily undo King move
if sub checked $origin:
die A King may not castle out of check.;
endif;
move $origin $dest;
endif;