Ad
  • Custom User Avatar

    Added the note, thanks for the suggestion :)

  • Custom User Avatar

    @FArekkusu - your drawing is deceptively misleading. First off, the kata does not explain that there could be obstacles in the path. Secondly the path to get to the target, with the obstacle, would be

    NORTH WEST WEST SOUTH SOUTH SOUTH EAST EAST
    

    and

    SOUTH SOUTH 
    

    without the obstacle.

    I'm sure you can cook up an example with an obstacle (perhaps a one way door?) where the paths

      NORTH SOUTH EAST WEST 
      NORTH EAST WEST SOUTH 
    

    (or similar) are not equivalent.

    The kata is ill-posed because the it gives the impression of a single algebraic set, but the test uses two separate sets.

    Please consider updating the kata description to clarify the intent. Thanks.

  • Custom User Avatar

    I agree! Would be a less trivial problem to solve too.

  • Custom User Avatar

    Em, FArekkusu, didn't you draw ["NORTH", "WEST", "SOUTH", "SOUTH", "EAST"] ?

  • Custom User Avatar

    Check your code.

  • Custom User Avatar

    Already explained in the note.

  • Custom User Avatar

    By the way, it's stated in the description, but I doubt you actually cared to read it to the end...

  • Custom User Avatar

    Consider such map:

    _________________
    |               |
    |               |
    |    |          |
    |    |   YOU    |
    |    |__________|
    |               |
    |       TARGET  |
    |_______________|
    

    Which one will lead you to the target? ["NORTH", "WEST", "SOUTH", "EAST"] or []?

  • Custom User Avatar

    The tests are the same in all languages and almost 8000 guys passed the kata: there are no error in the tests.