Ad
  • Default User Avatar

    You're correct thank you for the feedback! The description has been changed

  • Default User Avatar

    I am not sure I understand completely what you are trying to say but I will attempt to explain. In your snippet, the program is checking (currentPosition >= roadmap.length) which does not imply that the ball has passed the final tile. It only means that it has reached the final tile. To check if it has passed, you must check (currentPosition > roadmap.length) instead. So the correct solution would use the example shown, meaning that the ball did not necessarily pass the final tile, but may have only reached it instead.

  • Default User Avatar

    If the range is 62 and the speed is 10 and the ball can only travel 10+9+8...+1 then the ball will only end up traveling 55 units before the speed is 0

  • Default User Avatar

    Thank you both for your feedback! I divided the random attempt cases into two parts (one with a high density of cracks and one with a low density). I hope this fixes the issue.

  • Default User Avatar

    Thank you for your feedback and I believe this should be fixed now

  • Default User Avatar

    I apologise for the late reply but thank you for the idea I will try to have this suggestion implemented by tonight

  • Default User Avatar

    Thank you for your feedback once again

  • Default User Avatar

    Thanks for the feedback! I just decided to remove the d argument entirely and explain how the length of r was always the same as d in the kata description.