Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This looks very readable!
Note it's not needed to use
TrimEnd()
after every symbol check, it's enough to do it once per text line (though not sure which is faster). For style, I would suggest using a different name forcomments
(as it doesn't contain just comments), maybelines
.Maybe for good practice, 26 could be defined as
const int alphabetCount = 26;
at the top. This would avoid the higher maintenance costs of a magic number.