Ad
  • Custom User Avatar

    Needs random tests.

  • Custom User Avatar

    This is not an exact duplicate: that kata only contains squares as input.

    Random tests should be raised as a different issue.

  • Custom User Avatar

    Got a test fail for [0, 0, 3], 15. The error says the expected output is 0. Expected output should be null. 0 is not a valid output in the instructions.

  • Default User Avatar

    No random tests and trivial duplicate of invisible cubes

  • Custom User Avatar

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

  • Custom User Avatar

    Thanks for the hint. It helped :)

  • Custom User Avatar

    Since I had so much trouble with the last bomb and no doubt a lot of other people do too, here is a hint that would really have helped me:

    Both parts of the function need to be equal to true in order to pass.
    The comment above the check line is a big hint for the first part. Except as you can see it encodes your responses before it checks it, and you need to find a way to get around that.
    For the second part, reconsider what arrays are ;)

  • Custom User Avatar

    It gives you a function. Right there, in the comments.

    Bomb.diffuse()

    Do you think that in real life, if you must defuse a bomb, the bomb will give you specific instructions on how to do so? No. You must analyze how the bomb works, figure out what you can do to the bomb to make sure it doesn't explode. I think this kata does a really good job of simulating this.

    There will be many times when you will need not only to build something with logic but to understand how to manipulate and hack a pre-existing system to serve your own ends.

    You also learn some very important skills along the way. Out of all the kata I have done, I've learned the most from this one. Stuff like freezing objects or taking apart global variables or simply being able to understand and manipulate pre-written code.

    These are skills neccessary to build web crawlers, bots, etc.

    If you truly are capable to solve this kata, you would be able to complete the entire thing without any guesswork. It's how 700 people were able to do it. I can guarantee you that none of them used any guessing to solve this. Having seen the entire thing, guesses would never be able to pass the kata.

  • Custom User Avatar

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