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 version is closer to the actual game as it accounts for correct letters in the wrong place, not just letters in the right place as the other Kata does.
I enjoyed the kata. Bit of a shame if it's a duplicate. But the other kata is currently only in Python so maybe you could take what you have done here and turn it into a JS translation of Wordle! Cheat Bot.
This is a duplicate of https://www.codewars.com/kata/6255e6f2c53cc9001e5ef629 (after transforming the input format).
I added some better tests and your solution fails now as expected. Thanks for pointing out the problem.
I added random tests. Thanks for the suggestion.
Again, no random tests ?!?
Not sure if it's worth fixing, or worth fixing in its current form, considering it's another duplicate of too many existing kata. The task is just not novel, even if it is mildly interesting. But how many kata like this does CW need?
Example tests ( multiple ) for both solution functions would be a very good idea. ( Almost an
Issue
, but I don't know if the kata is going to survive in its current form anyway. )Other feedback: yes, this is a duplicate of ( too ) many existing kata. Please fix that, somehow. :]
No random tests.
Using a varying subset of the predefined
WORDS
for different tests could make things a bit more random still; passWORDS
as an argument to achieve that. Relying on global variables is a bad idea anyway.No random tests.
Sounds like good advice. I may remove the first two depending on other feedback. Also, thanks for pointing out the Discord channel -- I just joined it.
Not really, no. I understand it can be somewhat limiting in terms of making a series of katas, however without the restriction, too many authors would take advantage of this to create whatever duplicates they liked.
My suggestion here would be to make just one or two "Wordle" themed katas, rather than four. You can then use the kata itself as the 'build up', and get solvers to write a few different functions which you can test each individually. This way, while the initial task would be the same as other katas, it would merely be a part of a larger, more complicated and unique kata.
This is just my idea though, others may disagree. Feel free to drop by the Discord channel (there's a link on the left) to discuss kata ideas, and authoring help.
This comment is hidden because it contains spoiler information about the solution
These are intended to follow a theme about the Wordle game. Although trivial, "most common starting letter" is a somewhat interesting question that can be derived (or guessed) from the dictionary.
These are the first kata I've written. Is it ok to include some variations of other kata as long as they are fitting into a broader set? Thanks for the feedback.
Loading more items...