Ad
  • Default User Avatar

    Thank you for this kata. I found it surprisingly challenging. Had to chew on it for a few days. You had me drawing diagrams and everything :)

  • Custom User Avatar

    I find the kata unnecessarily focused on being adversarial to the AI rather than being optimal in our guesser:

    • myDigits and TryToGuess should be instance, not static. Static would mean that we can modify myDigits while TryToGuess is being active, which doesn't lead to cheese because of how CheckAI is implemented (it breaks after ~40 attempts), but is still a red herring
    • Speaking of the above, myDigits shouldn't even be a instance field at all, because it can then be turned into a property, and stops being a constant, again, another massive red herring
    • Is it even necessary to provide our own digits? Can't we just have the player and the AI guess the same digits? We're not trying to be adversarial to the AI after all (hence why all of the above will be attempted, even though they're all irrelevant), so it's only natural to not letting us provide our own digits. Besides, the AI is random in its guessing as well, so it doesn't quite matter
  • Custom User Avatar

    Setting any of the values in myDigit outside 0 - 9 will break the actual tests (because of how AI guesser is implemented), even though it is already checked in InputCheck and should not break thereafter.

    Also, some solutions are taking the assumption that you can passing in invalid solutions to PlayerTest.Check (values outside 0 - 9, or non-unique values). This is not specified and should be mentioned in the description because it will affect the behaviour of the guesser.

  • Custom User Avatar

    Nice solution. It looks like the most that can be done. Maybe vector search can do better, but it sounds too difficult to implement

  • Custom User Avatar

    That kata gives hints at every position, yours gives a hint across the entire solution set. I'd say these kata's differ enough! I do think you need a JS or Python translation, or this kata will remain in beta forever.

  • Custom User Avatar

    思いつかない場合は、ブルートフォースで試してみてください。

  • Default User Avatar

    It looks easy but is difficult. The only thing I knew was to put an S at the end.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Nice Kata. Love those inspirers!

  • Custom User Avatar

    how did you solve it?
    *changed
    i found the problem

  • Default User Avatar

    thank you brother, i was able to implement something more accurate on here.

  • Custom User Avatar
  • Default User Avatar

    my solution works in the idle but has an increment of 1 in the site here.
    i dont understand what seems to be the problem

  • Custom User Avatar

    There are 7kyu katas and there are card game katas.

  • Custom User Avatar

    It's left over from the example. Any case my bad, fixed

  • Loading more items...