Step 10: Jumping Hurdles (repeat and functions)

Project

Open Step 10 on the Reeborg environment.

../_images/step10.png

Reeborg has been running tests on it’s physical abilities lately. One of the things it has been practicing is jumping small hurdles. In this world, Reeborg needs to jump the hurdles, which are always the same height, and always spaced the same distance apart. You need to define a function such as:

def jump_hurdle():
    # your code goes here

You should use a repeat loop to have Reeborg jump the hurdles, and end at the goal (12, 1). The path to follow is shown with the black dashed line with arrows.

Next Section - Step 11: If/Else