Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import stem_graph as sp
- sp.(функция)
- Rmap, R1, r1, R2, r2, R3, r3, R4, r4, R5, r5, R6, r6 = sp.init_lib()
- print(sp.find_route(R3, r1.id))
- # def current_road(x_e, y_e):
- sp. init_lib(R1, r1, R2, r2, R3, r3, R4, r4, R5, r5, R6, r6):
- if current_road = R1:
- segm = segm.split()
- if segm == 'h':
- x_e, y_e = ///
- # if bot in R1:
- # segm.split()
- # we will get some concrete elements of this road
- # detect every entry point of this Road
- # if bot goes to entry point, switch one part to another. then changing the road happens
- # output = location
- # print(output)
- # where is entry point?
- # def get_route_len. call x_e and y_e
- # roads consist of elements. we should get access to these elements,
- # determine where bot is located and determine the entry point
- # how to get coordinates of every element on the road? we have x_e and y_e for typos of roads,
- # but we don't have particular coordinates
- # 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