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.
Solved the kata, my algorythm wasn't good.
I wrote the code with the simple and optimal solution. However, when I try to submit, I have the problem that it displays that it wants to remove from a 0 pile. I don't know what the problem can be, since when I run the function on my computer, with the given input, my computer displays the correct move.
For example the error message: "Exception: Cannot remove 6 straws from board position 0 (which has 0 straws)
Board state: (0, 6, 5, 5)" shows up. But when I run my function on [0,6,5,5], it returns (2,6) on my computer.
Thanks. Problem solved. Noob error.
All 8 test passed, but there is an error message:
Test usage
Translate characters
Traceback:
in
in init
AssertionError: Too many wires
I am new to Code Wars as well as python. Can you please tell me what's wrong?
Btw "Too many wires" is an error I raise when there are more than 20 characters in wires.
I also pass empty imput.