aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

Code error #458

Closed makashinmi closed 3 years ago

makashinmi commented 3 years ago

Good day. I'm trying to solve Hurdles tasks series and have reached the 4th one so far, but the edited code gives me an unexplained error saying "I cannot help you with this problem." Could anyone please check on my code and tell what's causing the problem?

Here's the code: `def jump(): _while wall_on_right(): __move()

def turn_right(): _turn_left() _turn_left() _turn_left()

while not at_goal(): _while front_is_clear(): move() _while not front_is_clear(): __turn_left() jump() turn_right() move() turn_right() jump() if front_is_clear(): __exit() else: __turn_left()

`

aroberge commented 3 years ago

exit() is a Python function that attempts to quit the entire session. You need to use done().