Ad
  • Custom User Avatar

    It was intended as a pun, but my smiley didn't (fully) go through ;-)

    Cheers

  • Custom User Avatar

    Thanks for that (and the link)— I'm a newbie at posting kata of my own so I don't quite know the rules/culture.

  • Custom User Avatar

    I do like how this one is set up, but it is really too similar to the other one. It's a shame for the effort that went in to it. If you have ideas for more katas, I encourage you to pop into the Discord server, and ask there if your idea is a duplicate. That is usually a more reliable way of checking if its a new idea or not.

  • Custom User Avatar

    Thanks for the feedback, I simplified everything to champagne in the description so people don't get confused whether or not wine is different from champagne. I've kept bottle in the function name because that is an accurate label, the function is called as each bottle of champagne is doled out one-by-one for poison-testing.

  • Custom User Avatar

    This is the same problem, but this kata provides the logical strategy behind discovering the wine bottle. Mine requires you to solve the whole problem, from coming up with the strategy of using minimal rats to suss out the poisoned bottle, all the way to identifying said bottle at the end.
    Apologies if that is too similar, but since this version is several steps longer I thought it was justified (and I didn't know about this one beforehand anyway).

  • Custom User Avatar

    Thanks for that, updated the initial provided code to be consistent/correct.

  • Custom User Avatar

    Task not clear: title mentions wine, description talks about champagne, but the function name is about a bottle ;-

  • Custom User Avatar
  • Custom User Avatar

    In the description and initial solution, guess_bottle only has one argument, however the tests expect it to take two.

  • Custom User Avatar
  • Custom User Avatar

    if youre in python

  • Custom User Avatar

    maybe you could make a list of n elements and one could be different--that one would be poisoned(e.g.['a','a','a'....'b']etc.)?

  • Custom User Avatar

    Hey all! Trying to design my first kata, but I think it might not be possible?...
    It's a riddle kata... you get n items, and one of these items is poisoned. It's your job to find the poisoned item, n_? out of n total. (In addition to severe limitations on how many trials you can do to find it, that's the tricky part.)
    Now, obviously, the n_? item needs to be marked in some way so that when you're experimenting, it can interact with your data objects to give you clues about its identity.
    But how can I give the kata-goers this variable n_? in a secret/hidden fashion without them just saying, well let me just print out the given function parameter n_? and return that, instead of truly 'solving it'?
    Are kata riddles always this hard/impossible to implement when there needs to be some hidden clue you have access to, but not direct access to?...

  • Custom User Avatar

    Take some more time and implement a relatively efficient algorithm.

  • Custom User Avatar

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

  • Loading more items...