• ###### AiDenBaycommented on "Quest: Kill ten rats!" kata

This comment is hidden because it contains spoiler information about the solution

• ###### bidouillecommented on "Quest: Kill ten rats!" kata

This comment is hidden because it contains spoiler information about the solution

• ###### anter69created a suggestion for "Quest: Kill ten rats!" kata

So much missed potential...

``````>>> world.pickup("npc")
Sorry, but I am not single!
>>> world.pickup("npc")
Just leave me alone, will you?
>>> world.pickup("npc")
You do it one more time, and I feed you to those rats!
>>> world.pickup("npc")
Game over.
``````
``````>>> world.pickup("rat")
The rat bites you and you start bleeding.
Game over.
``````
``````>>> world.pickup("gun")  # ...or basically anything else
There is no ... here.
``````

etc.

Oh, and please add apostorphes! (like `"dont"`)

Fixed

• ###### fenring76created an issue for "Quest: Kill ten rats!" kata

This comment is hidden because it contains spoiler information about the solution

• ###### MikaelCallcommented on "Calculate the distance of two points in N dimensions" kumite

It is bad practice to create a list in the sum function. A generator will not allocate memory. Also, I find x and y to be better names for points in this, i.e. math, domain.

• ###### leigaoyicommented on "Calculate the distance of two points in N dimensions" kumite

Using package not in the standard python library like numpy, to test others is not very good.
I think we come here to train language , not the special library.

• ###### pemncommented on "Quest: Kill ten rats!" python solution

I added a test to see if the returned object is of the correct class.

• ###### gh314commented on " Distance Between Two Points in a Plane and in the Space." kumite

thanks. i really like list comprehensions and generator expressions so i wanted to apply them to this case.

• ###### pemncommented on "The Millionth Fibonacci Kata" python solution

I knew someone would come up with a very clever solution... but a one liner for this? Im trully impressed.

• ###### pemncommented on "Make a spiral" python solution

Very impressive solution! Took me a while to understand how it works but when it clicked i was amazed by the simple but effective idea. Also, very good use of numpy arrays.

• ###### pemncommented on " Distance Between Two Points in a Plane and in the Space." kumite

Nice! I love one liners. Expecially when they are an upgrade with no downsides like this one.

• ###### runandrewcommented on "Sum of Pairs" kata

Something like this: array.map(el => el). No printing, just visiting each element and returning it.

• ###### brendanvoscommented on "Sum of Pairs" kata

Edit: accidental double post due to slow site

• ###### brendanvoscommented on "Sum of Pairs" kata

Test 5 in the default example tests is indeed correct.