SaveText.Ru

2
  1. if free_from_down():
  2.     move_down()
  3. if wall_from_left():
  4.     move_right()
  5.     move_up()
  6. elif wall_from_right():
  7.     move_left()
  8.     move_up()
  9. else:
  10.     move_up()

Share with your friends:

Print