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.
can someone explain this
This comment is hidden because it contains spoiler information about the solution
this is nice. ^_^
Thanks for the feedback.
I added three additional random test cases, and 3 sample tests.
edit: I just noticed that the sample tests are not being generated because I commented them out. Do you have any recommendations on how I can include sample tests without adding complexity to the question or without using a gauranteed word in the output string?
Cool, I had not seen the slice_before method - I'll have to check it out.
What an epic solution.
It's nice to get Katas that involve the states of objects, thanks!
This class could be cleaner though if the constant served a more defined purpose:
DAMAGE = {'h' => 10, 'l' => 5}
..
damage = DAMAGE[position]
instead of:
Position = {'high'=>'h','low'=>'l'}
..
damage = position == Position['high'] ? 10 : 5
Very nice
warning - this solution should have failed.
warning - this solution should have failed.
This kata needs more test cases.
Specifically, to check the 3x3 square validity.
My first solution should have failed, but passed.
nice!
Many of the solutions do not work for fixnum arguments. Example: last (12345)