Guest User

Untitled

a guest
Apr 18th, 2020
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from pyrob.api import *
  2.  
  3.  
  4. @task(delay=0.05)
  5. def task_4_11():
  6.  
  7.     for x in range(7):
  8.         move_down()
  9.         while not wall_is_beneath():
  10.             move_right()
  11.             fill_cell()
  12.             move_down()
  13.         move_left()
  14.         while not wall_is_on_the_left():
  15.             move_up()
  16.             fill_cell()
  17.             move_left()
  18.     move_right()
  19.  
  20.  
  21. if __name__ == '__main__':
  22.     run_tasks()
Advertisement
Add Comment
Please, Sign In to add comment