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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Smart!
(Python) Passed every other test but received this error:
STDERR
Traceback (most recent call last):
File "main.py", line 49, in
tests()
File "main.py", line 38, in tests
testw[randint(0, 9)]=['n','s','w','e'][randint(0, 3)]
IndexError: list assignment index out of range
Raul, once you finalize the description, just let me know and I'll match it in the translation.
Raul, I can run it again in Ruby.
If you mean you try to run it and nothing shows, that happens to me all the time. I think CW is just logging you out right when you try to train, then it spazzes and you see just a big black box. It has been logging me out constantly for the last hour every time I try to do something. It is like this some days.
Raul, my translation? I just ran it again and it was fine.
We have problem with the kata. Click the Try Again button and you'll see nothing.. I don´t know what's going on.
Haskell :
https://www.codewars.com/kumite/5bbcd812a5eb561c9a000024?sel=5bbcd812a5eb561c9a000024
A few notes :
-I added a couple of edge cases to the fixed tests
-I had to adjust the random tests for time concerns
Hi @anter69. As this kata was approved, I'm working on it improving it.
For the Javascript version:
The instructions say now that the math module doesn't have to be imported for the python version.
In the test cases we have now
log(1/2)
that will output a negative fraction, also cos(120), thatwill output a negative value, too.
In the random tests we have now
sin(x)
,cos(x)
,tg(x)
, withx
as a random integer in the interval(1, 360)
I'll make the changes for Python and Ruby for today.
Thanks a lot for the feedback. Feel free to point out what you think that should be fixed.
Ok. Got it.
Raul, I have it wrote, I just need to add the random tests.
You don't need to wait though, if you make any changes to the description or test suite, I can update the translation when I finish it tonight.
Cliff, once you publish the translation into Haskell. I'll fix the issues and suggestions. Otherwise I won't be able to approve it.
No worries, I was kind of kidding. The katas with exhaustive test suites are generaly the more interesting, you and Johan do that very well.
:-D