Check out Alice Chess, our featured variant for June, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
🕸💡📝Fergus Duniho wrote on Wed, May 22 02:41 PM UTC in reply to Fergus Duniho from 02:27 PM:

The problem is that "set many" does not work with expressions. Each value assigned to a variable must be a scalar value or a variable value.

More precisely, "set many" does not natively work with expressions, and for a long time it just did not work with them. But if an expression is placed in braces, it will now be evaluated during preprocessing of the line. So this works:

set many ok 1 promo 0 ori #source1 desti #dest1 mover {space #dest1};

As a test of what I'm talking about, try echo with an expression and with the same expression between braces, like so:

echo + 8 9;
echo {+ 8 9};

The first line prints "+ 8 9", and the second prints 17.