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.
https://www.codewars.com/kata/558fc85d8fd1938afb000014/discuss/javascript#66a125a0d9b42a57468382bf
i'm going to "refactor" the description so it's clearer. Just give me a pair of days. Thanks for the advice!
[Edit] Added a similar chart as the commented above to description so is easier to understand how battles are done. Thanks for your help, I hope now is better.
This kata has potential, but the description is horrible. I did not enjoy it. But if you're able to cleanup the description, I'm sure this can be a fun kata.
Ooookay, this explains some things. I couldnt get this either, I tohught that both inputs are queues of units to fight. Description definitely could be improved in this regard, but I am not sure yet how :)
The figth goes as following:
So, as all winners are from Gondor, there's no second round. This means, the result is the following:
Thanks for visiting my kata, hope you have fun with it!
Since all strings used by tests are string literals, solutions which use reference equality of strings instead of
String::equals
pass without problems. It would be nice if==
did not work if the inputs are strings. Or, if the author wants the==
equality to work, then make inputs enums or somethign what ensures this kind of equality.how does the above result in
There should be only a Wizard remaining.
Corrected!
Thank you for the feedback!
Same typo is near end of description
typo in function name
figthTheInvaders
Corrected!
Thanks for the feedback!
There is an issue for original kata and you better not inherit it. There really should be explicit tests with repeating minimum in the array. For example
[3, 4, 3, 5]
should produce6
, not7
. I guess, single fixed test is ok.Java Translation for review
Thanks to the author for his work.