Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. import stem_graph as sp
  2.  
  3. sp.(функция)
  4. Rmap, R1, r1, R2, r2, R3, r3, R4, r4, R5, r5, R6, r6 = sp.init_lib()
  5. print(sp.find_route(R3, r1.id))
  6.  
  7.  
  8. # def current_road(x_e, y_e):
  9. sp. init_lib(R1, r1, R2, r2, R3, r3, R4, r4, R5, r5, R6, r6):
  10. if current_road = R1:
  11. segm = segm.split()
  12. if segm == 'h':
  13. x_e, y_e = ///
  14.  
  15. # if bot in R1:
  16. # segm.split()
  17. # we will get some concrete elements of this road
  18. # detect every entry point of this Road
  19. # if bot goes to entry point, switch one part to another. then changing the road happens
  20. # output = location
  21. # print(output)
  22. # where is entry point?
  23. # def get_route_len. call x_e and y_e
  24. # roads consist of elements. we should get access to these elements,
  25. # determine where bot is located and determine the entry point
  26. # how to get coordinates of every element on the road? we have x_e and y_e for typos of roads,
  27. # but we don't have particular coordinates
  28. # connect segm to the number of road. segm is a list with parts of the road
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement