Ad
  • Custom User Avatar

    Not an issue

  • Default User Avatar

    Ok got it.

  • Custom User Avatar

    But if you follow the Directions given above, its not reaching 3.

    Though it perfectly does reach the exit point...

    [[1, 1, 1, 1, 1, 1, 1, 1, 0, 1],
     [1, 3, 1, 0, 1, 0, 0, 0, 0, 1],
     [1, 0, 1, 0, 0, 0, 1, 1, 0, 1],
     [1, 0, 1, 1, 1, 1, 1, 0, 0, 1],
     [1, 0, 1, 0, 0, 0, 0, 0, 0, 1], 
     [1, 0, 1, 0, 1, 0, 1, 0, 0, 1],
     [1, 0, 1, 0, 1, 0, 0, 0, 0, 0],
     [1, 0, 1, 0, 1, 0, 1, 1, 0, 1],
     [1, 0, 0, 0, 1, 0, 0, 0, 0, 1],
     [1, 1, 1, 0, 1, 1, 1, 1, 2, 1]]
     
     ["N", "W", "W", "W", "N", "N", "N", "N", "W", "W", "S", "S", "S", "S", "W", "W", "N", "N", "N", "N", "N", "N", "N", "S", "S"]
    
  • Default User Avatar

    Yes I know. The end point for finish is 3. But if you follow the Directions given above, its not reaching 3.

  • Custom User Avatar

    Without looking too deeply into this please could I refer you to the line in the instuctions.

    If you reach the end point before all your moves have gone, you should return Finish.

    Hope this helps :-)

  • Default User Avatar

    Log:

    Maze: [[1, 1, 1, 1, 1, 1, 1, 1, 0, 1], [1, 3, 1, 0, 1, 0, 0, 0, 0, 1], [1, 0, 1, 0, 0, 0, 1, 1, 0, 1], [1, 0, 1, 1, 1, 1, 1, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 1, 0, 1, 0, 0, 1], [1, 0, 1, 0, 1, 0, 0, 0, 0, 0], [1, 0, 1, 0, 1, 0, 1, 1, 0, 1], [1, 0, 0, 0, 1, 0, 0, 0, 0, 1], [1, 1, 1, 0, 1, 1, 1, 1, 2, 1]]
    Directions: ["N", "W", "W", "W", "N", "N", "N", "N", "W", "W", "S", "S", "S", "S", "W", "W", "N", "N", "N", "N", "N", "N", "N", "S", "S"]

    Should return Finish - Expected: "Finish", instead got: "Lost"

    This is the log I got when i attempted. I think this testcase is incorrect.

  • Custom User Avatar

    undocumented issues are not issues. :p

  • Default User Avatar

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

  • Custom User Avatar

    Passed all the test but still showing as incomplete.

    What could we do with that?
    Language? What's your code? Please read this, paste your code and mark your post as having spoiler content. Use issue reporting only after you're sure your code is ok, see how many solutions there are for the language you're using, if there are a lot, normally the problem is in your code and not in the kata code. If the problem is in your code, use Question label instead.

  • Custom User Avatar

    Resolved then.

  • Default User Avatar

    I had tried it.
    There was an issue while returning. Its resolved now.

    Anyway thanks.

  • Custom User Avatar

    Did you try it with a big number in repl.it?

  • Default User Avatar
  • Default User Avatar

    My code is not working properly in Ruby.

    I tried it on repl and its working.

  • Default User Avatar

    Passed all the test but still showing as incomplete.