[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Single Comment
I rewrote part of Game Courier to clearly distinguish between user input and programming code, so that I could write code that restricts user input without affecting any programming code. One consequence of this is that notation no longer works as programming code unless it is preceded by the keyword 'MOVE:'. I could fix it so that notation can be used as programming code again, but it would involve duplicating code, and I would rather encourage the use of commands for programming code. The operation you are using @- for can be done with the empty command. Just replace your two lines with the statement 'empty e5 f5;'. The statement 'capture e5 f5;' will do the same thing but keep track of the last piece captured, just as if you used notation. But given your reason for this code, what you're really trying to do is modify the value of the $piecekeys variable, which can be done with the setsystem command. Use this statement for that purpose: 'setsystem piecekeys c C f F k K n N p P r R s S 1e 1E .1ef .1EF;' This will let your setup be accurate while still including the extra pieces among the available pieces.