The Chess Variant Pages is an amateur, hobbyist website that has been run by volunteers since it was founded in 1995. Its operating expenses are covered through advertising and donations. You can help out by making a small donation or by using this site's affiliate links when you shop at House of Staunton, Wholesale Chess, Amazon.com, or ebay.com. We also have a page featuring Figurine Chess Variant pieces with links for purchasing them.
https://www.chessvariants.org/index/listcomments.php
[
info] [
links] [
edit]
No, those are already in use for returning arrays of spaces. Also, PHP doesn't have a ctype function for what you want.
With #0 standing in for the space with the piece in question, try using match #0 nolower. This will check whether it's among the spaces whose pieces have no lowercase letters in them. Or with #0 as the piece label, you could try not fnmatch "*[a-z]*" space #0. This checks it against a wildcard pattern for containing any lowercase ASCII characters, then negates the result.