Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. cost = 100
  2.  
  3. # for going downwards
  4. if (a[1] < b[1] and a[0] in [0, 80, 160] and a[1] < 160):
  5. cost = 0
  6. # for going upwards
  7. elif (a[1] > b[1] and a[0] in [40, 120] and a[1] >= 40):
  8. cost = 0
  9. # for going right
  10. elif(a[0] < b[0]) :
  11. if (a[1] == 160 and a[0]//40 in [0, 2, 4]):
  12. cost = 0
  13. elif (a[1] == 39 and a[0]//40 in [1, 3]):
  14. cost = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement