Ad
  • Default User Avatar

    Apologies, as I've replied to dashersw below, the expected text is incorrect. I've corrected the test case now. You did get the right result except you're missing the rounding.

    I've stated in the description of the Position object that all coordinates must be integers (and rounded if nessesary). If this is not clear enough I can put it into the description itself?

    Also, I think your comment should be marked as a Spoiler but I won't do that until you've had a chance to see this reply :-)

  • Default User Avatar

    Oh, the shame! The vicious goblins Copy & Paste have struck again :-)

    Apologies, the test case was correct but the helping text in the "expected" part was a copy of the previous test case (the halfway). I've updated the text in the test case so it shows the correct expected value.

    Thank you for spotting this :-)

  • Default User Avatar

    I'm having the same issue.

  • Default User Avatar

    This is my first kata so any feedback is welcomed :)

  • Default User Avatar

    Or possibly the test case is incorrect as it assumes the Cylon specifications would want to spell correct... it's all part of the plan ;-)

  • Default User Avatar

    Are function objects and prototype references really a beginner's subject? I'm new around here and no expert to JS but have so far solved katas rated 3 levels higher than this "7 kyu" and yet found this much more difficult as it took me some time to wrap my head around understanding the function objects and prototype references. If you have that understanding already, this kata is obviously easy, but the question stands, is that knowledge really a beginner's subject?