SaveText.Ru

2
  1. if wall_from_right() and wall_from_down():
  2.     move_up()
  3.     move_left()
  4.     move_up()
  5. elif wall_from_left() and wall_from_down():
  6.     move_up()
  7.     move_up()
  8. elif wall_from_left() and free_from_up():
  9.     move_up()
  10. elif wall_from_up() and wall_from_right() and free_from_left():
  11.     move_left()
  12.     move_up()
  13. elif free_from_down() and wall_from_up() and wall_from_left():
  14.     move_down()
  15.     move_up()

Share with your friends:

Print