Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def task_8_21():
- while True:
- while wall_is_on_the_left() and wall_is_above():
- for i in range(9):
- move_right()
- move_down()
- while wall_is_on_the_right() and wall_is_above():
- for i in range(9):
- move_left()
- move_down()
- else:
- if wall_is_on_the_left() and wall_is_beneath():
- for i in range(9):
- move_up()
- move_right()
- if wall_is_on_the_right() and wall_is_beneath():
- for i in range(9):
- move_up()
- move_left()
- break
- if __name__ == '__main__':
- run_tasks()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement