Check out Modern Chess, our featured variant for January, 2025.


[ 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

Play-test applet for chess variants. Applet you can play your own variant against.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Sun, Jul 19, 2020 05:06 PM UTC in reply to H. G. Muller from 08:21 AM:

The question is how the presence of suicides or freedrops in the input move is relayed to the post-move code so that it can check for their legality.

I just remembered that the variables $prevmoved, $prevorigin, and $prevdest will return the previous values of $moved, $origin, and $dest. I have also just added $prevcaptured for the previous value of $old. As long as you have no more than two moves per turn, these may give you the information you need.