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.
Nice one using string interpolation here!
Python translation
Ruby updated
JS fixed. Other languages should be updated.
Fixed: fork approved
This fork fixes both issues for JS ( and updates to
Node 18.x).Description should explicitly specify how to handle repeating
letters. This is tested ( at least in JS ), and the spec should be that repeated letters count as misses.( JS )
All upvoted solutions do not consistently pass random tests, often passing mostly because the random tests always produce 26
lettersbecause of a bug. Fixed cases invalidating these solutions will be added.Description does not specify what to return if
wordis not guessed, there are less than 7 misses, andlettersruns out. Neither fixed nor random tests currently test this scenario ( random tests only because of aforementioned bug ), but the reference solution returnsfalse. This should be explicitly specified, and there should be fixed tests for it.Description should also lose the "kata will be deleted soon" warning that has been there for the past 10 years - it's not going to happen.
I'll fix JS, but C# and Ruby should be checked and updated as well.
The description specifies how this Hangman works. Closing.
bruh
Really interesting kata, thanks.
This kata is literally older than support for
**. So, yes, I might agree that**is cleaner and more understandable (note: "newer" is a thoughtless and irrelevant argument), but you're saying that at answers written when**wasn't necessarily possible.this solution is great but its better that use ** because its newer
added
Node 18.0 enabled in this fork
Loading more items...