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.
Thanks!
I love how you commented each line, makes it easy for me to follow and understand the code.
This comment is hidden because it contains spoiler information about the solution
Ruby translation added: https://www.codewars.com/kumite/5dd19a0df647ab0018f19cb8?sel=5dd19a0df647ab0018f19cb8
Seems like the description has some markdown error and isn't rendering the 'image' properly. The newlines are collapsed.
Is it good to state explicitly to return true/false?
I ommited that in my answer as I feel that the '==' sign already makes the return value a boolean