• ###### david.pbcreated a suggestion for "Feed The Dogs" kata

Solved some problems in the python solution:

• Python random tests have cases with one dog

• In python function name should be snake_case (feed_the_dogs).

• Python: the random tests print something else instead of the function arguments:

• ###### david.pbcommented on "Feed The Dogs" kata

I fix all the issues long ago, but i can´t mark it as resolved. :(

• ###### david.pbcommented on "Feed The Dogs" kata

I solve the issue in a fork, but don´t seems to be enough to mark it as resolved.

• ###### pablo.js2resolved an issue on "Feed The Dogs" kata

Fixed!, Thanks

• ###### mauro-1created a question for "Feed The Dogs" kata

Why `feed_the_dogs([2, 5, 1, 3], [1, 2, 2, 0])` should be `[1, 2, 3, 1]` (from random tests)?

``````In [257]: feedthedogs.feed_the_dogs([2, 5, 1, 3], [1, 2, 2, 0])
food=[2, 5, 1, 3] dogs=[1, 2, 2, 0]  dogs[0]=1 food[1]=5  eat food[1]->4
food=[2, 4, 1, 3] dogs=[1, 2, 2, 0]  dogs[1]=2 food[2]=1  eat food[2]->0
food=[2, 4, 0, 3] dogs=[1, 2, 2, 0]  dogs[2]=2 food[2]=0  stay                         nearest_food=[1, 3] nearest_dogs=[2]
food=[2, 4, 0, 3] dogs=[1, 2, 2, 0]  dogs[3]=0 food[0]=2  eat food[0]->1
food=[1, 4, 0, 3] dogs=[1, 2, 2, 0]  dogs[0]=1 food[1]=4  eat food[1]->3
food=[1, 3, 0, 3] dogs=[1, 2, 2, 0]  dogs[1]=2 food[2]=0  stay                         nearest_food=[1, 3] nearest_dogs=[2]
food=[1, 3, 0, 3] dogs=[1, 2, 2, 0]  dogs[2]=2 food[2]=0  stay                         nearest_food=[1, 3] nearest_dogs=[2]
food=[1, 3, 0, 3] dogs=[1, 2, 2, 0]  dogs[3]=0 food[0]=1  eat food[0]->0
food=[0, 3, 0, 3] dogs=[1, 2, 2, 0]  dogs[0]=1 food[1]=3  eat food[1]->2
food=[0, 2, 0, 3] dogs=[1, 2, 2, 0]  dogs[1]=2 food[2]=0  stay                         nearest_food=[1, 3] nearest_dogs=[2]
food=[0, 2, 0, 3] dogs=[1, 2, 2, 0]  dogs[2]=2 food[2]=0  stay                         nearest_food=[1, 3] nearest_dogs=[2]
food=[0, 2, 0, 3] dogs=[1, 2, 2, 0]  dogs[3]=0 food[0]=0  move dogs[3]->1 food[1]->1   nearest_food=[1]
food=[0, 1, 0, 3] dogs=[1, 2, 2, 1]  dogs[0]=1 food[1]=1  eat food[1]->0
food=[0, 0, 0, 3] dogs=[1, 2, 2, 1]  dogs[1]=2 food[2]=0  move dogs[1]->3 food[3]->2   nearest_food=[3]
food=[0, 0, 0, 2] dogs=[1, 3, 2, 1]  dogs[2]=2 food[2]=0  move dogs[2]->3 food[3]->1   nearest_food=[3]
food=[0, 0, 0, 1] dogs=[1, 3, 3, 1]  dogs[3]=1 food[1]=0  move dogs[3]->3 food[3]->0   nearest_food=[3]
food=[0, 0, 0, 0] dogs=[1, 3, 3, 3]  dogs[0]=1 food[1]=0  end
Out[257]: [1, 3, 3, 3]  # should be [1, 2, 3, 1]
``````
• ###### Unnamedcreated an issue for "Feed The Dogs" kata

There will always be at least two dogs.

Python random tests have cases with one dog.

• ###### Unnamedcreated an issue for "Feed The Dogs" kata

Python: the random tests print something else instead of the function arguments:

``````For sol(<function feedTheDogs at 0x7f52604aedd0>)
: [50] should equal [86]
``````

.

Fixed!!

• ###### pablo.js2commented on "Feed The Dogs" kata

No fixed, sorry!

• ###### pablo.js2commented on "Feed The Dogs" kata

Fixed, thanks!

• ###### yLaWycommented on "Feed The Dogs" kata

I can't believe someone made a kata about "What the dog doin"