Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if wall_is_on_the_right() ==0:
- while wall_is_on_the_right() ==0 and wall_is_above() == 1:
- move_right()
- if wall_is_above() ==0:
- while wall_is_above() ==0:
- move_up()
- if wall_is_above() ==1:
- while wall_is_on_the_left() == 0:
- move_left()
- if wall_is_on_the_left() == 0:
- while wall_is_on_the_left() ==0 and wall_is_above() ==1:
- move_left()
- if wall_is_above() ==0:
- while wall_is_above() ==0:
- move_up()
- if wall_is_above() ==1:
- while wall_is_on_the_left() == 0:
- move_left()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement