Check out Glinski's Hexagonal Chess, our featured variant for May, 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

How to Display Legal Moves in Game Courier - A Tutorial. A Game Courier Tutorial.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Mon, Jan 2, 2017 09:26 PM UTC:

I'm not going to change onlyupper and onlylower, because that could break scripts, and it would make them less efficient than they need to be for normal use. But you can get what you want using the aggreate function with some lambda functions. These check only the first character in a piece label. Just create your own stalemated subroutine that uses them.

Instead of onlyupper, use "aggregate lambda (#0 onlyif isupper char #0 0) pieces"

Instead of onlylower, use "aggregate lambda (#0 onlyif islower char #0 0) pieces"