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.
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.