Beta
Hangman
16 of 64gabrielsiedler
Loading description...
Games
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I liked this kata. Do not delete it. Perhaps rename it in "Hangman - Easy version" or something else.
That is not how Hangman works, you don't keep guessing after you've won. Maybe you should call the Kata another name cause this game is not Hangman
My second Ruby solution looks like the real Hangman game
I agree with you. But what I am trying to avoid is simplistic
contain in letters array
solutions. Maybe I could stop testing after the player had found the world, but to keep the test structure and avoiding this problem, I would need to keep testing after the player get hung. What do you think?This comment has been hidden.
The issue is that if the letters stop when it is dead or if the game ended the answer is going to be there already.
We don't want it to be a simple contains.
So I think the best approach is to change the kata name a bit, maybe
Help validate Hangman
,Broken Hangman
, or well just leave as is...I would like @ZozoFouchtra input on that
Are the guesses from first to last? If you guess from left to right, then why do you keep guessing after you have found the word? (this I found was in the Javascript final random test cases)
This comment has been hidden.
That is not how hangman works, you don't keep guessing after you've won.
http://www.codewars.com/kata/hangman-game
my solution works without counting or checking the mistakes... so testcases are not complete;-)
True. It was fixed on javascript but the fix wasnt being applied on other languages. I'll work on it. Thank you
Oops, the random string generator on C# was a bit off.
I've fixed it and now the solutions have been invalidated.
ok, new working solution has been submited, testcases seem to be ok now - thanks;-)!
This comment has been hidden.
Hi. Thank you for your suggestions, both issues were solved.
Can I have your input in this current discussion?
Ruby version kumited.
Done. Thanks.