You need to sign in or sign up before continuing.×
Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You're correct thank you for the feedback! The description has been changed
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.
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
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.
Thank you for your feedback and I believe this should be fixed now
I apologise for the late reply but thank you for the idea I will try to have this suggestion implemented by tonight
Thank you for your feedback once again
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.