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
Sample test still uses old classifications naming.
To match the description, 'N' should be 'C1', 'M' should be 'D1'.
Tests in Python could use some improvements. They are structured quite poorly, no good distinction into test groups, fixed tests, random tests, etc.
Initial code is invalid: it should be
self.secret
instead ofHangman.secret
, etc. They should not be class variables.This comment is hidden because it contains spoiler information about the solution
I am curious, are other solutions passing 100% of the time? I got mine to pass on average 98% of the tests (which was close enough to pass all after submitting a couple times), but that certainly wont survive any updates to the kata. Based on the nature of the kata I find it very difficult to imagine a solution that is guaranteed to pass 100% of the time.
Edit: An idea to potentially handle some of the randomness:
Of course, just an idea and perhaps your solution can already pass 100%. If you do want highly reliable solutions though I would suggest increasing the number of tests to prevent solutions like mine and computationlan's from passing.
This solution failed at a random test with
If precise calculations are required, there should be corresponding fixed tests.
This comment is hidden because it contains spoiler information about the solution
imo, you shouldn't do 2 separated tests about the output. Just assert the whole tuple once and for all:
((dx,dy), period)
.that makes even clearer what the output is, and that decreases the mount of noise.
Duplicate.
The reference solution is kind of interesting, but impossible to recap, if you don't know the specific library. I think, it should be mentioned in the description...
This kata is very similar to:
https://www.codewars.com/kata/56832fb41676465e82000030
I'm not fond of the way the class is set up for that one. The board, sequence of misses, and number of strikes should be read-only properties, and the guess function simply return true on successful discovery.
This one is concise enough that it could be rewritten as a coroutine. Thoughts or suggestions?
Duplicate.
Why the hell are there sentences like "Sometimes you gwyne to git hurt, en sometimes you gwyne to git sick; but every time you's gwyne to git well agin."?! That's not even correct english.
This kata is a duplicate of:
https://www.codewars.com/kata/55ff2ca7d49961915600000e
Loading more items...