But it occurred to me that if it did work right, it would remove the display of the last move. So, I'm not sure I should bother trying to get it to work.
I don't see off-hand why that wouldn't work. The code I suggested had a case mismatch for the M. Perhaps it is a timing problem, that it tries to run before the page is fully loaded. It should be possible to solve that by putting the code in a function (say F), and call that with an onload="F();" in the HTML <body> tag.
I am not sure what exactly would get erased. The highlighting of the previous move? I proposed to do this only in the page after continuemove (which is different anyway, as it displays 'previous moves'), not for the regular move entry, for the rare case there only is a single piece that can move. For entry of a second leg there is no interest in what happened before; you just did that yourself.
As to the Polish expressions:
What puzzles me is that if I do
set v1 (a b);
set v2 cond 1 (a b) (c d);
that v2 reverses a and b, but v1 not. The syntax of the set command is also
set variable expression;
so in both cases we are dealing with expressions that are evaluated. But the arguments of cond are apparently treated differently from the expression in set.
I don't see off-hand why that wouldn't work. The code I suggested had a case mismatch for the M. Perhaps it is a timing problem, that it tries to run before the page is fully loaded. It should be possible to solve that by putting the code in a function (say F), and call that with an onload="F();" in the HTML <body> tag.
I am not sure what exactly would get erased. The highlighting of the previous move? I proposed to do this only in the page after continuemove (which is different anyway, as it displays 'previous moves'), not for the regular move entry, for the rare case there only is a single piece that can move. For entry of a second leg there is no interest in what happened before; you just did that yourself.
As to the Polish expressions:
What puzzles me is that if I do
that v2 reverses a and b, but v1 not. The syntax of the set command is also
so in both cases we are dealing with expressions that are evaluated. But the arguments of cond are apparently treated differently from the expression in set.