Ad
  • Custom User Avatar
    • Description also does not mention the coordinates given as well as the association between direction of movement and sign (+ / - ) of the coordinate.

    • Should be language-agnostic

    As a side note for solvers, coordinates decrease upon moving above the Y-axis !

  • Custom User Avatar
  • Custom User Avatar

    Nice kata. Three suggestions:

    • Explicitly mention coordinates are given as [y,x]. It can be deduced from the examples, but why make it a puzzle?
    • Capitalise "Queen". This is perhaps a matter of taste.

    Your function returns two outcomes.

    • No, it returns one of two outcomes.