I want to restrict user input so:
setsystem maxmove 2;
ban commands allmoves;
allow moves 1 moves 2 captures 1 promotions 2;
The purpose is to allow entering a generalized castling move, examples:
e1-d1;a1-e1
e1-b1;a1-d1
But then the user might enter something like c1-f7;d2-d4 , the first part
being illegal. The preset should reject this move, but it is difficult,
because the system variables only reflect the (legal) second part d2-d4 :
old = @
origin = d2
dest = d4
moved = P
Is it possible to get info about the first move-part, or at least the info
that the user has entered two parts?