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.
So any survivors know what to put on your gravestone?
Left in debugging code - bother!
This situation should be covered by the line: (If you run out of ammo at the same time as the remaining zombies reach you, return "You shot X zombies before being eaten: overwhelmed.".)
The description uses "Scissors", but the testcases use "Scissor". This should be consistent.
And ~7 kyu in Ruby.
I encountered an issue with the Ruby version: all the random tests seem to be expecting an empty array, and the only way I could get all the tests to pass was by checking to see if the calculated result contained more than six items, and returning an empty array if it did.
You should add a test that explicitly checks that a five digit number is invalid. I got a solution which returns true for a five digit number to pass all the tests by repeatedly clicking Submit until the random tests didn't check for this situation.
There's no test that checks that addScore adds the supplied score to the player's score if the player already exists.
Excellent hard-coding: I doff my cap to you.
Hard coding for the win!
Very nice!
That was pretty much it: in my mind "out of ammo" was the situation where you have run out of ammo and are just waiting for the zombies to get to you.
In Ruby, the only edge case I had to handle was IV.
I enjoyed this, but can I suggest adding at least one Basic Test for 10, 20, 30... etc, as these are a special case?
Is this not a bit easy for a 7 kyu kata?
Loading more items...