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 comment is hidden because it contains spoiler information about the solution
Thank you, just approved it.
Fixed, thank you very much!
I had to read the description 1-2 more times to understand that you changed from 'citizen' to 'character' in the description which I found misleading/complicated.
Since you use fantasy names you should add some information to the example what the citizen name is and what the weapon name.
Description and tests are ok so far, I'd like to question the premise of the Kata itself. Mandating a complete change for the case when a string is passed in is pretty arbitrary behaviour.
Since this is tagged "Fundamentals" I would expect that a kata should teach best practices in the given language, not force someone to implement questionable behaviour. (Only catching the string case, not a general error case; returning some string instead of None (in python) or throwing).
For me it felt a bit weired to return -1 if the function fails, instead of None or throwing an exception (did it in python), Otherwise nice kata.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution