✅ Golf Scenarios -- no starting position in docs

The exercise references the prior Golf exercise but doesn’t include a link, the prior code or the start position.

The problem is missing the step size for the golf ball as well. I made up my own step size and although it worked, Jiki failed it. So I went back to last golf problem and saw it used repeat loop 60 times. I tried that and it passed even though I used 6 lines of code when the problem specified using only 6 lines. I have attached the screenshot.

1 Like

The start position is 30 for the Golf Scenarios problem

That’s correct. The issue is that information is not provided by this exercise, though :slight_smile:

1 Like

Same - was missing start position and you can’t inspect canvas here.

Also wonder how @nicholas-immenschuh solution passes? Instructions say it should avoid getting one-shoted, and should be similar to the first Golf excersise with animation where we moved ball 1 pixel per step.

It’s helpful to share your code as text using a codeblock

You’re right. I will do it in the future

1 Like

Could you do it now for the current issue you shared above?

// my solution 

// Roll the ball
let shotLength = getShotLength()
let i = 30
rollTo(shotLength + i)
1 Like

Thank you! I changed your quote block to a code block for you.

1 Like

Thank you all. This is now fixed and will deploy shortly.

The start position has now been set to be 28 to be consistent with the other exercises.