Ad
  • Custom User Avatar

    What do you think happens if a String argument is given? What is supposed to happen?

  • Custom User Avatar
  • Default User Avatar

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

  • Custom User Avatar

    The ruby solution returns "Left side wins!" when I am checking it. I tested the exact solution that is used in random tests. There are 38 people who finished it successfully. Maybe there is some bug in your solution.

  • Default 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!"
    
  • Default User Avatar

    I enjoyed this kata and I think I solved it, but one of the Test cases is returns nil instead of lost, and it's kinda weird since it passes every Random Test.

  • Custom User Avatar

    Thank you so much for translating :-), please feel free to translate any of my other katas.

  • Custom User Avatar

    Hello Adrian here's a PHP translation(I've put less walls[1's] in random testing so it's a bit more balanced outcome between 'Dead','Lost' and 'Finish', hope you don't mind).

  • Custom User Avatar

    Fair comment :-), i've updated the details. Thanks for solving.

  • Default User Avatar

    I'd like to suggest you change this part "The Maze array will always be square ie 7 x 7 but will alter from test to test." to something like this "The Maze array will always be square i.e. 7 x 7 but its size and content will alter from test to test.". I only discovered that the size changes when I opened discuss section. However, great kata anyway.

  • Custom User Avatar

    Thank you for solving. Please could you grade this kate if you havent already :-)

  • Default User Avatar

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

  • Default 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!!

  • Default User Avatar

    I tried a few solutions in Ruby, all these solutions give: Passed: 208 Failed: 0.

  • Default 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?

  • Loading more items...