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.
I was being blind, thanks!
Hi, in the sample tests, I don't understand how Alice wins in assert_equals(mutations(alice, bob, "soar", 1), 0) # Bob goes first, Alice wins
*impostor :)
that's correct. Multiplying an int with a bool returns the int if the bool is True, and 0 if it's False.
You would just need ("s" if b != 1 else "").
I started to have more extra work when I assumed one would stay on the same street and/or avenue. :)
could be more interesting if one would stay on the same street and/or same avenue, and Puck's suggestion with "1 block" too, but I still liked.
funny!
but the plural of leaf is leaves.
wow, did not know Python converts bools to ints automatically
This comment is hidden because it contains spoiler information about the solution
Weird how you passed the kata using the whole array when they are huge. You don't need to use the whole array.
The names of the countries have a space before them, and I had to trim them.
Hi, some notes:
careful, Math.floor is very slow.
http://jsperf.com/float-to-int-conversion-comparison
yes I was: I put "winner name". Silly Codewars!
"Missile" is spelt wrong.
The penultimate point should be 'If both robots run out of tactics, whoever has the most health wins. Return the message " has won the fight."'
Loading more items...