Skip to content

Instantly share code, notes, and snippets.

@hotcoffeehero
Last active December 10, 2020 08:12
Show Gist options
  • Save hotcoffeehero/1d1f59323cfd204597c31e34c90254e8 to your computer and use it in GitHub Desktop.
Save hotcoffeehero/1d1f59323cfd204597c31e34c90254e8 to your computer and use it in GitHub Desktop.
Reeborg's World Hurdle Four
def turn_right():
turn_left()
turn_left()
turn_left()
def round_corner():
turn_right()
move()
turn_right()
def jump():
turn_left()
while wall_on_right():
move()
round_corner()
while front_is_clear():
move()
turn_left()
while not at_goal():
if wall_in_front():
jump()
else:
move()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment