Check out Grant Acedrex, our featured variant for April, 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

Chess piece names with period in them[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Wed, Jul 22, 2020 01:44 AM UTC in reply to wdtr2 from Tue Jul 21 10:14 PM:

I am guessing that the Period in .rf prevents the function friend to determine if it islower.

Yes, it does. The islower function returns true only when all characters in the string are lowercase.

I would suggest making a distinction between your notation and the piece labels. .rf is a piece label, but it should not be used for notation. Use completely alphabetic notation, and test the case of the notation rather than the case of the label. See the fairychess include file tutorial for details.