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.
Yep, works fine now, thanks.
Hi awesomead, I have made a change that should fix everything. Please try again when you get a chance, thanks.
awesome!
Thank you very much for your quick response. I had written that part and when I wanted to rewrite it, I just deleted without writing it new.
So I thought I considered everything and it seems that then my frustration made me blind.
Now it works!
Hello, I just wanted to ask how trustworthy are the tests in JavaScript?
More than one time I've seen tests like the one beneath.
Alice has no valid word in her memory, however Bob does - namely
heme
.My code finds this word and therefore the winner is
1
(Bob). The test however claims that-1
is the correct result.Either the tests are heavily unreliable or i misunderstood the Kata completely.
Thanks for help in advance!
Hi, me again! Still C#, still an issue:
Consider the following output:
The inputs are getting slightly unwieldy at this point, but I still tried to go over them by hand and verify; there is no answer for Bob to give, but the tests expect him to win. Are there edge-cases I'm missing or a rule I have overlooked?
Note, as prior, I am passing the fixed tests. I also took my C# code, translated it word for word into Python and that solution passed wihthout issues.
Thanks for the feedback, I am checking everything and will fix this as soon as possible.
Oi. Indeed. Reading comprehension is useful sometimes....
As I understood "cuss" is not valid answer as far as it has two letters 's' and we have rule
a valid response word must contain four different letters
So probably it should stop execution somewhere on previous steps fo the game
C#
There's something iffy going on with the random tests.
First of all, they pretty much all expect to end after the first or second word, i.e. both lose or one instantly fails. Games very rarely go on for more rounds than that.
Secondly, I keep failing tests where the expected result is
-1
(both fail), but my solution has one of them actually finding an answer.Here's a sample of my test logs:
All test runs look pretty much identical (pass all fixed tests, btw). My solution does not take any shortcuts, if a word exists and has not been used, it will be found as an answer.
What gives?
@DayDreamer_7 I have found a test from the
C#
random test generator upon which your code fails. I checked this test against the reference solution in multiple languages and also against code from highly qualified members. Having reversed theexpected/submitted
to the proper order and provided a test for your debugging, I will close theissue
. If you find any further concern, please re-post and provide evidence. I would like to see you be the first to solve this kata inC#
. Thanks, and good luck.This comment is hidden because it contains spoiler information about the solution
@heptapod here is such a random test (each memory length is
100
) for which your code returns0
where instead it should return-1
:@YuKir hi, again: please get back to me with some data, thanks
Loading more items...