Ad
  • Custom User Avatar

    Thanks for your response. I needed to dup the fight string. That is all.

  • Custom User Avatar

    Hi,

    Nice kata premise....but maybe I'm misunderstanding. My (ruby) test cases are all ok, but some random ones don't seem correct. Here's an example:

    Testing for "pz*dssm"
    

    The way I see it, "pz*dssm" evaluates to "p***ssm" after taking into account the bombs.

    Then the scoring is 5 points for left side (p + s + s) and 4 points for the right side (m). Left side should win, but I get:

    It should work for random inputs too -  Expected: "Right side wins!", instead got: "Left side wins!"
    
  • Custom User Avatar

    Never mind....I see that the maze size changes. I thought it was always 7x7.

  • Custom User Avatar

    Hi, I'm enjoying this kata, however, I'm confused by one of the specs. I'm passing 49 tests and failing the first one which is:

    N N N W W W N N W W S S S S W W N N N N N N N N N N W

    ✘ Should return Finish - Expected: "Finish", instead got: "Dead"

    Those directions do not lead to the finish...Thanks!!

  • Custom User Avatar

    So I changed my code, deleted the line in question (as per your comment) so the decode method doesn't have it anymore, and still I'm having the same issue:

    Expected: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice.\v\v\v\v\v\v\v\v\v\v\v",

    instead got: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice."

    Why would the Expected output be affected by my coding in the first place?

  • Custom User Avatar

    But my output for code and decode are correct (regardless of how it's done) as shown in the example in my above comment.

    Why is my code affecting the expected test results?

  • Custom User Avatar

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

  • Custom User Avatar

    Here is an example of the failed test:

    Expected: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice.\v\v\v\v\v\v\v\v\v\v\v",

    instead got: "Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great And would suffice."

  • Custom User Avatar

    Hi, when doing this in Ruby, the expected answer of the decode test leaves vertical tabs at the end of the string (\v\v\v\v..). Is this correct? I thought we were supposed to clean those up.