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.
.
added ranomd tests
sure.. Sorry, I forget to add the random tests
(duplicate error - see above)
Clarifying in description.
I'm going to add another test ;)
Tim!!! You rockstar :) All good
I've made a clarification in the description about the type checking.
As an aside, given the ease of this challenge for my students, I can appreciate them getting familiar with checking for input type and throwing errors.
Oh, and input type checking is a boring chore that distracts from the kata in most cases. Definitely agree with you there Giacomo.
You may be misunderstanding him.
The tests actually require throwing an error if the argument is a number, and this is NOT mentioned in the description.
To prevent testing against number instead of for string (does that make sense?), the tests would indeed be better if they more comprehensively tested this feature.
I agree with tigarcia this is an issue (the first one at least, the second could be a suggestion).
Wouldn't be it either only a boring chore to people who are accustomed to do that or a challenge greater than the kata itself for neophytes?
Edit: you should open a suggestion for this, as it is your opinion, not an actual issue in his code.
Ty. Included a test case for this as well.
Added a note in the description:
important: if the player guesses a letter that was already guessed, you should ignore it and return the
{game state}
Fixed the algorithm in both languages and added a test case.
Thank you for your feeback.
Good! Thanks for the feedback!
This comment is hidden because it contains spoiler information about the solution