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]
Jose Carrillo wrote on Sat, Jan 7, 2017 06:44 AM EST:

Thanks for your response and the new functions Fergus.

To keep things simple (I'm an old programmer, not too familiar with the lambda terminology), I just want four replacement functions (that I can use as black boxes) for the existing ones, so that I can do minimal changes to the presets.

Can I use this definition for the new functions I'm looking for?

def onlyupper2 filter lambda (regmatch "/[A-Z]/" #1) pieces
def onlylower2 filter lambda (regmatch "/[a-z]/" #1) pieces

def isupper2 regmatch "/[A-Z]/" #0
def islower2 regmatch "/[a-z]/" #0

Thanks for your help.